enhance collapse_vars & dead_code (#4491)

This commit is contained in:
Alex Lam S.L
2021-01-01 13:52:14 +00:00
committed by GitHub
parent 2dbafbb4ee
commit 0417a69c3e
6 changed files with 120 additions and 45 deletions

View File

@@ -2175,7 +2175,7 @@ issue_3016_3: {
expect: {
var b = 1;
do {
console.log((a = void 0, a ? "FAIL" : a = "PASS"));
console.log((a = void 0, a ? "FAIL" : "PASS"));
} while (b--);
var a;
}
@@ -2208,7 +2208,7 @@ issue_3016_3_ie8: {
expect: {
var b = 1;
do {
console.log((a = void 0, a ? "FAIL" : a = "PASS"));
console.log((a = void 0, a ? "FAIL" : "PASS"));
} while (b--);
var a;
}