fix corner case in inline (#4389)

fixes #4388
This commit is contained in:
Alex Lam S.L
2020-12-17 16:55:19 +00:00
committed by GitHub
parent a96f087ac3
commit 02fdcfde01
2 changed files with 23 additions and 2 deletions

View File

@@ -336,3 +336,18 @@ trim_body: {
expect_stdout: "PASS undefined"
node_version: ">=4"
}
issue_4388: {
options = {
inline: true,
toplevel: true,
}
input: {
(arguments => console.log(arguments && arguments))();
}
expect: {
(arguments => console.log(arguments && arguments))();
}
expect_stdout: "undefined"
node_version: ">=4"
}