aboutsummaryrefslogtreecommitdiff
path: root/test/compress/destructured.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-01-05 18:11:30 +0000
committerGitHub <noreply@github.com>2021-01-06 02:11:30 +0800
commit71c3d04681b5f77799d426547be9646f25f44abc (patch)
treef4dafef943dd38b6fed2c5a016fc3081a6cfdcf9 /test/compress/destructured.js
parent4c89550c43974d5d570f132b2d8bc105c05cc618 (diff)
downloadtracifyjs-71c3d04681b5f77799d426547be9646f25f44abc.tar.gz
tracifyjs-71c3d04681b5f77799d426547be9646f25f44abc.zip
fix corner case in `side_effects` (#4513)
fixes #4512
Diffstat (limited to 'test/compress/destructured.js')
-rw-r--r--test/compress/destructured.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/compress/destructured.js b/test/compress/destructured.js
index a476705d..4f6a9f2f 100644
--- a/test/compress/destructured.js
+++ b/test/compress/destructured.js
@@ -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"
+}