From 86182afa7f3c6d6159e2ade7b88306ab1f62832b Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Tue, 9 Oct 2012 22:56:59 +0300 Subject: [PATCH] minor --- lib/compress.js | 9 +-------- 1 file changed, 1 insertion(+), 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){ -- 2.34.1