enhance reduce_vars (#3942)

This commit is contained in:
Alex Lam S.L
2020-06-01 13:55:23 +01:00
committed by GitHub
parent 06ba4e2ce8
commit b24eb22c6b
7 changed files with 260 additions and 192 deletions

View File

@@ -2412,9 +2412,9 @@ issue_3887: {
expect: {
(function(b) {
try {
b-- && console.log("PASS");
1, console.log("PASS");
} catch (a_2) {}
})(1);
})();
}
expect_stdout: "PASS"
}
@@ -2478,10 +2478,10 @@ issue_3920: {
console.log(a);
}
expect: {
var a = function(b) {
return (b[b = 0] = 0) >= (b ? 0 : 1);
}("foo");
console.log(a);
(function(b) {
"foo"[0] = 0;
})();
console.log(false);
}
expect_stdout: "false"
}