aboutsummaryrefslogtreecommitdiff
path: root/test/reduce.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/reduce.js')
-rw-r--r--test/reduce.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/reduce.js b/test/reduce.js
index f6b54141..48030b0f 100644
--- a/test/reduce.js
+++ b/test/reduce.js
@@ -352,6 +352,11 @@ module.exports = function reduce_test(testcase, minify_options, reduce_options)
}
}
}
+ else if (node instanceof U.AST_Spread) {
+ node.start._permute++;
+ CHANGED = true;
+ return node.expression;
+ }
else if (node instanceof U.AST_Switch) {
var expr = [
node.expression, // switch expression