fix corner case in side_effects (#4326)

fixes #4325
This commit is contained in:
Alex Lam S.L
2020-11-29 02:05:48 +00:00
committed by GitHub
parent f045e2b460
commit 9d34f8428b
5 changed files with 60 additions and 17 deletions

View File

@@ -3322,9 +3322,7 @@ issue_3506_1: {
}
expect: {
var a = "FAIL";
!function(b) {
b && (a = "PASS");
}(a);
a && (a = "PASS");
console.log(a);
}
expect_stdout: "PASS"