fix corner case in arguments (#4400)

fixes #4399
This commit is contained in:
Alex Lam S.L
2020-12-18 02:12:01 +00:00
committed by GitHub
parent 82d2aa4acf
commit 1b646d3bc4
3 changed files with 24 additions and 1 deletions

View File

@@ -1906,3 +1906,25 @@ issue_4395: {
expect_stdout: "PASS"
node_version: ">=6"
}
issue_4399: {
options = {
arguments: true,
}
input: {
console.log(function({
[arguments[1]]: a,
}, b) {
return a;
}([ "PASS" ], 0));
}
expect: {
console.log(function({
[arguments[1]]: a,
}, b) {
return a;
}([ "PASS" ], 0));
}
expect_stdout: "PASS"
node_version: ">=6"
}