aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/compress.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 48f87e6a..b7a59ae9 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -1224,14 +1224,7 @@ merge(Compressor.prototype, {
return a;
}, []);
if (assignments.length == 0) return null;
- return (function seq(list){
- var first = list[0];
- if (list.length == 1) return first;
- return make_node(AST_Seq, first, {
- car: first,
- cdr: seq(list.slice(1))
- });
- })(assignments);
+ return AST_Seq.from_array(assignments);
});
OPT(AST_Definitions, function(self, compressor){