fix corner case in arguments (#4535)

fixes #4534
This commit is contained in:
Alex Lam S.L
2021-01-10 20:17:39 +00:00
committed by GitHub
parent dbfa5d4d14
commit 16b97f9558
2 changed files with 21 additions and 3 deletions

View File

@@ -977,3 +977,21 @@ issue_4454_2: {
]
node_version: ">=8"
}
issue_4534: {
options = {
arguments: true,
}
input: {
(function(await) {
(async () => console.log(arguments[0]))();
})("PASS");
}
expect: {
(function(await) {
(async () => console.log(arguments[0]))();
})("PASS");
}
expect_stdout: "PASS"
node_version: ">=8"
}