diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-10-09 22:56:59 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-10-09 22:56:59 +0300 |
commit | 86182afa7f3c6d6159e2ade7b88306ab1f62832b (patch) | |
tree | e8b51e4c1c744b5cc968b476fc25c1e658ca6f7c | |
parent | 4807c6e75686ea722a2424e7a1dd369225c1be3b (diff) | |
download | tracifyjs-86182afa7f3c6d6159e2ade7b88306ab1f62832b.tar.gz tracifyjs-86182afa7f3c6d6159e2ade7b88306ab1f62832b.zip |
minor
-rw-r--r-- | lib/compress.js | 9 |
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){ |