fix corner case in --reduce-test (#3985)

This commit is contained in:
Alex Lam S.L
2020-06-10 15:51:00 +01:00
committed by GitHub
parent 1dbf7d4a3a
commit ed69adedcd
4 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
(function f(a) {
do {
console.log(f.length);
} while (console.log(f += 0));
})();

View File

@@ -0,0 +1,19 @@
// (beautified)
(function f(a) {
do {
console.log(f.length);
} while (console.log(f += 0));
})();
// output: 1
// function(){}0
//
// minify: 0
// function(){}0
//
// options: {
// "compress": {
// "keep_fargs": false,
// "unsafe": true
// },
// "mangle": false
// }