mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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);
|
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') {
|
||||||
|
|
Loading…
Reference in a new issue