No need to throw operator exceptions since we're checking for their existence in the parsing.

This commit is contained in:
Jürg Lehni 2012-11-18 10:13:50 -08:00
parent 34819e6a73
commit b977e18e3b

View file

@ -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);
}
}