__add__ fails, what about __sub__?
@@ -1780,15 +1780,17 @@ __pragma__ ('endif')
String.prototype.__rmul__ = String.prototype.__mul__;
+ Number.prototype.__sub__ = function (other) {
+ return this - other;
+ };
+
// python style magic methods for numbers
+
+ /*
Number.prototype.__add__ = function (other) {
return this + other;
};
- /*
- Number.prototype.__sub__ = function (other) {
- return this - other;
- };
Number.prototype.__mul__ = function (other) {
return this * other;
