fix corner case in inline (#5253)

fixes #5251
This commit is contained in:
Alex Lam S.L
2022-01-02 08:10:39 +00:00
committed by GitHub
parent aa6eb0d5be
commit f7841bc8b8
2 changed files with 22 additions and 0 deletions

View File

@@ -906,3 +906,24 @@ issue_4772: {
expect_stdout: "PASS"
node_version: ">=4"
}
issue_5251: {
options = {
inline: true,
toplevel: true,
}
input: {
(() => {
while (console.log(arguments))
var arguments = "FAIL";
})();
}
expect: {
(() => {
while (console.log(arguments))
var arguments = "FAIL";
})();
}
expect_stdout: true
node_version: ">=4"
}