diff --git a/src/core/PaperScript.js b/src/core/PaperScript.js index 345edad4..3a7f43d6 100644 --- a/src/core/PaperScript.js +++ b/src/core/PaperScript.js @@ -150,7 +150,7 @@ var PaperScript = this.PaperScript = new function() { walkAst(value); } } - switch (node.type) { + switch (node && node.type) { case 'BinaryExpression': if (node.operator in binaryOperators && node.left.type !== 'Literal') {