mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
No need to throw operator exceptions since we're checking for their existence in the parsing.
This commit is contained in:
parent
34819e6a73
commit
b977e18e3b
1 changed files with 0 additions and 4 deletions
|
@ -62,8 +62,6 @@ var PaperScript = this.PaperScript = new function() {
|
|||
case '%': return left % right;
|
||||
case '==': return left == right;
|
||||
case '!=': return left != right;
|
||||
default:
|
||||
throw new Error('Implement Operator: ' + operator);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -75,8 +73,6 @@ var PaperScript = this.PaperScript = new function() {
|
|||
switch (operator) {
|
||||
case '+': return +value;
|
||||
case '-': return -value;
|
||||
default:
|
||||
throw new Error('Implement Unary Operator: ' + operator);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue