empty functions are legal code

This commit is contained in:
Jeremy Ashkenas
2010-02-11 23:39:25 -05:00
parent df386a3b3f
commit 04f07f4c15
2 changed files with 2 additions and 2 deletions

View File

@@ -216,7 +216,7 @@
Expressions = (exports.Expressions = inherit(Node, {
type: 'Expressions',
constructor: function constructor(nodes) {
this.children = (this.expressions = compact(flatten(nodes)));
this.children = (this.expressions = compact(flatten(nodes || [])));
return this;
},
// Tack an expression on to the end of this expression list.