enhance reduce_vars (#5248)

This commit is contained in:
Alex Lam S.L
2021-12-31 23:53:47 +00:00
committed by GitHub
parent e7ce1051fe
commit 8d0422b6f3
4 changed files with 15 additions and 15 deletions

View File

@@ -3228,10 +3228,10 @@ issue_4653: {
f(a++ + (b = b), b |= console.log(a));
}
expect: {
var b = 1;
var b, a = 1;
(function(c, d) {
c || console.log(d);
})(+b + (b = void 0), b |= console.log(2));
})(+a + (b = b), b |= console.log(2));
}
expect_stdout: [
"2",