This commit is contained in:
Mihai Bazon
2012-10-09 22:56:59 +03:00
parent 4807c6e756
commit 86182afa7f

View File

@@ -1224,14 +1224,7 @@ merge(Compressor.prototype, {
return a; return a;
}, []); }, []);
if (assignments.length == 0) return null; if (assignments.length == 0) return null;
return (function seq(list){ return AST_Seq.from_array(assignments);
var first = list[0];
if (list.length == 1) return first;
return make_node(AST_Seq, first, {
car: first,
cdr: seq(list.slice(1))
});
})(assignments);
}); });
OPT(AST_Definitions, function(self, compressor){ OPT(AST_Definitions, function(self, compressor){