Array comprehensions are alive and well on the self-compiler

This commit is contained in:
Jeremy Ashkenas
2010-02-12 13:52:57 -05:00
parent c0f9058f15
commit e2ad1190ac
2 changed files with 2 additions and 2 deletions

View File

@@ -964,7 +964,7 @@
ASSIGNMENT: ['||=', '&&=', '?='],
PREFIX_OPERATORS: ['typeof', 'delete'],
constructor: function constructor(operator, first, second, flip) {
this.children = [(this.first = first), (this.second = second)];
this.children = compact([(this.first = first), (this.second = second)]);
this.operator = this.CONVERSIONS[operator] || operator;
this.flip = !!flip;
return this;