aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/destructured.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/compress/destructured.js b/test/compress/destructured.js
index 086790f0..9fd425d1 100644
--- a/test/compress/destructured.js
+++ b/test/compress/destructured.js
@@ -1844,3 +1844,25 @@ issue_4372_2: {
expect_stdout: "PASS"
node_version: ">=6"
}
+
+issue_4383: {
+ options = {
+ evaluate: true,
+ reduce_vars: true,
+ unsafe: true,
+ }
+ input: {
+ console.log(function(a) {
+ [ a[0] ] = [];
+ return a.length;
+ }([]));
+ }
+ expect: {
+ console.log(function(a) {
+ [ a[0] ] = [];
+ return a.length;
+ }([]));
+ }
+ expect_stdout: "1"
+ node_version: ">=6"
+}