Handle null nodes.

This commit is contained in:
Jürg Lehni 2012-11-21 12:17:01 -08:00
parent 373474d088
commit 7fe8e3c918

View file

@ -150,7 +150,7 @@ var PaperScript = this.PaperScript = new function() {
walkAst(value); walkAst(value);
} }
} }
switch (node.type) { switch (node && node.type) {
case 'BinaryExpression': case 'BinaryExpression':
if (node.operator in binaryOperators if (node.operator in binaryOperators
&& node.left.type !== 'Literal') { && node.left.type !== 'Literal') {