fix corner case in evaluate & reduce_vars (#4394)

fixes #4393
This commit is contained in:
Alex Lam S.L
2020-12-17 23:16:04 +00:00
committed by GitHub
parent 4fa54b075c
commit 2c637fea8a
2 changed files with 24 additions and 1 deletions

View File

@@ -3074,3 +3074,23 @@ issue_4271: {
"PASS",
]
}
issue_4393: {
options = {
evaluate: true,
reduce_vars: true,
}
input: {
(function f(a) {
a = "PASS";
console.log(arguments[0]);
})("FAIL");
}
expect: {
(function f(a) {
a = "PASS";
console.log(arguments[0]);
})("FAIL");
}
expect_stdout: "PASS"
}