aboutsummaryrefslogtreecommitdiff
path: root/test/reduce.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-12-30 17:47:00 +0000
committerGitHub <noreply@github.com>2020-12-31 01:47:00 +0800
commit8b954b022bf206048f8380878251bd64795da5f9 (patch)
tree31d7ca925c3f47982c672cef70799e204dc60822 /test/reduce.js
parent0013cbf91f5a833eb51e3473ef2f18844f722ae9 (diff)
downloadtracifyjs-8b954b022bf206048f8380878251bd64795da5f9.tar.gz
tracifyjs-8b954b022bf206048f8380878251bd64795da5f9.zip
fix corner case with default values (#4484)
fixes #4483
Diffstat (limited to 'test/reduce.js')
-rw-r--r--test/reduce.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/reduce.js b/test/reduce.js
index 48030b0f..120868fe 100644
--- a/test/reduce.js
+++ b/test/reduce.js
@@ -124,7 +124,6 @@ module.exports = function reduce_test(testcase, minify_options, reduce_options)
// ignore lvalues
if (parent instanceof U.AST_Assign && parent.left === node) return;
- if (parent instanceof U.AST_DestructuredArray) return;
if (parent instanceof U.AST_DestructuredKeyVal && parent.value === node) return;
if (parent instanceof U.AST_Unary && parent.expression === node) switch (parent.operator) {
case "++":