fix corner case in side_effects (#4622)

fixes #4621
This commit is contained in:
Alex Lam S.L
2021-02-07 14:40:41 +00:00
committed by GitHub
parent 522cceeccf
commit c44b6399c3
2 changed files with 19 additions and 1 deletions

View File

@@ -696,3 +696,21 @@ issue_4575: {
expect_stdout: "PASS 0"
node_version: ">=6"
}
issue_4621: {
options = {
side_effects: true,
}
input: {
(function f(a, ...{
[console.log(a)]: b,
}) {})("PASS");
}
expect: {
(function f(a, ...{
[console.log(a)]: b,
}) {})("PASS");
}
expect_stdout: "PASS"
node_version: ">=6"
}