avoid reducing setter argument (#3737)

This commit is contained in:
Alex Lam S.L
2020-03-01 05:04:21 +00:00
committed by GitHub
parent c8d60d6983
commit 3485472866
4 changed files with 41 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
console.log(function f(a) {
({
set p(v) {
f++;
}
});
return f.length;
}());
// output: 1
//
// minify: 0
//
// options: {
// "compress": {
// "keep_fargs": false,
// "unsafe": true
// },
// "mangle": false
// }