fix corner case in side_effects (#4513)

fixes #4512
This commit is contained in:
Alex Lam S.L
2021-01-05 18:11:30 +00:00
committed by GitHub
parent 4c89550c43
commit 71c3d04681
2 changed files with 15 additions and 9 deletions

View File

@@ -2384,3 +2384,17 @@ issue_4508: {
]
node_version: ">=6"
}
issue_4512: {
options = {
side_effects: true,
}
input: {
console.log(function([ a, b = a ]) {}([]));
}
expect: {
console.log(function([ a, b = a ]) {}([]));
}
expect_stdout: "undefined"
node_version: ">=6"
}