fix corner case in arguments (#4477)

fixes #4476
This commit is contained in:
Alex Lam S.L
2020-12-29 10:58:29 +00:00
committed by GitHub
parent ddc0ed7072
commit 10a71c182b
2 changed files with 40 additions and 14 deletions

View File

@@ -616,3 +616,25 @@ issue_4448: {
expect_stdout: "PASS"
node_version: ">=4"
}
issue_4476: {
options = {
arguments: true,
}
input: {
(function(a, b) {
(a => {
console.log(arguments[0], a);
})(b);
})("foo", "bar");
}
expect: {
(function(a, b) {
(a => {
console.log(arguments[0], a);
})(b);
})("foo", "bar");
}
expect_stdout: "foo bar"
node_version: ">=4"
}