enhance side_effects (#3383)

This commit is contained in:
Alex Lam S.L
2019-04-25 04:14:21 +08:00
committed by GitHub
parent c56d89f804
commit a206964c0a
4 changed files with 36 additions and 14 deletions

View File

@@ -1416,3 +1416,22 @@ issue_3271: {
}
expect_stdout: "1 1"
}
iife_condition: {
options = {
conditionals: true,
side_effects: true,
}
input: {
if (function() {
return console;
}())
console.log("PASS");
}
expect: {
!function() {
return console;
}() || console.log("PASS");
}
expect_stdout: "PASS"
}