enhance side_effects (#4727)

This commit is contained in:
Alex Lam S.L
2021-03-03 10:47:17 +00:00
committed by GitHub
parent 04ed818f0a
commit 2a49760032
6 changed files with 64 additions and 43 deletions

View File

@@ -2863,7 +2863,7 @@ lvalues_def: {
expect: {
var a = 0, b = 1;
a = b++, b = +void 0;
a && a[a++];
a && a++;
console.log(a, b);
}
expect_stdout: true
@@ -5098,7 +5098,7 @@ issue_2878: {
}
b = f2();
a = 1;
b && b.b;
b && b[console];
f2();
})();
console.log(c);
@@ -5111,7 +5111,7 @@ issue_2878: {
}
b = f2(),
a = 1,
b && b.b,
b && console,
f2();
})(),
console.log(c);
@@ -6546,7 +6546,7 @@ issue_3520: {
(function f() {
c = 0;
var i = void 0;
var f = f && f[i];
var f = f && f[console && i];
})();
a += b;
c && b++;
@@ -6560,7 +6560,7 @@ issue_3520: {
for (var i = 2; --i >= 0;) {
(function() {
c = 0;
var f = f && f[void 0];
var f = f && f[console && void 0];
})();
a += b;
c && b++;