mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Handle null nodes.
This commit is contained in:
parent
373474d088
commit
7fe8e3c918
1 changed files with 1 additions and 1 deletions
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue