diff options
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/compress.js b/lib/compress.js index c19091d7..3820a3ad 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -12313,8 +12313,10 @@ merge(Compressor.prototype, { OPT(AST_DestructuredArray, function(self, compressor) { if (compressor.option("rests") && self.rest instanceof AST_DestructuredArray) { - self.elements = self.elements.concat(self.rest.elements); - self.rest = self.rest.rest; + return make_node(AST_DestructuredArray, self, { + elements: self.elements.concat(self.rest.elements), + rest: self.rest.rest, + }); } return self; }); |