fix corner case in side_effects (#4752)

fixes #4751
This commit is contained in:
Alex Lam S.L
2021-03-07 20:19:51 +00:00
committed by GitHub
parent 31e7d25cad
commit f52b0e7c31
9 changed files with 277 additions and 45 deletions

View File

@@ -2554,7 +2554,7 @@ side_effects_assign: {
console.log(a);
}
expect: {
var a = "undefined";
var a = typeof void (a && a.in);
console.log(a);
}
expect_stdout: "undefined"
@@ -2595,7 +2595,9 @@ pure_getters_2: {
var a;
var a = a && a.b;
}
expect: {}
expect: {
var a = a && a.b;
}
}
pure_getters_3: {