aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-10-09 22:56:59 +0300
committerMihai Bazon <mihai@bazon.net>2012-10-09 22:56:59 +0300
commit86182afa7f3c6d6159e2ade7b88306ab1f62832b (patch)
treee8b51e4c1c744b5cc968b476fc25c1e658ca6f7c
parent4807c6e75686ea722a2424e7a1dd369225c1be3b (diff)
downloadtracifyjs-86182afa7f3c6d6159e2ade7b88306ab1f62832b.tar.gz
tracifyjs-86182afa7f3c6d6159e2ade7b88306ab1f62832b.zip
minor
-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){