fix corner case in spread (#4364)

fixes #4363
This commit is contained in:
Alex Lam S.L
2020-12-11 18:19:11 +00:00
committed by GitHub
parent 076739db07
commit 1020d37256
2 changed files with 26 additions and 1 deletions

View File

@@ -758,3 +758,26 @@ issue_4361: {
]
node_version: ">=8"
}
issue_4363: {
options = {
objects: true,
spread: true,
}
input: {
({
...{
set [console.log("PASS")](v) {},
},
});
}
expect: {
({
...{
set [console.log("PASS")](v) {},
},
});
}
expect_stdout: "PASS"
node_version: ">=8"
}