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;
}, []);
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){