Index: tests/compiler/dart2js/mock_compiler.dart |
=================================================================== |
--- tests/compiler/dart2js/mock_compiler.dart (revision 27024) |
+++ tests/compiler/dart2js/mock_compiler.dart (working copy) |
@@ -123,13 +123,13 @@ |
} |
class JSNumber extends Interceptor implements num { |
// All these methods return a number to please type inferencing. |
- operator-() => (this is JSInt) ? 42 : 42.0; |
- operator +(other) => (this is JSInt) ? 42 : 42.0; |
- operator -(other) => (this is JSInt) ? 42 : 42.0; |
+ operator-() => (this is JSInt) ? 42 : 42.2; |
+ operator +(other) => (this is JSInt) ? 42 : 42.2; |
+ operator -(other) => (this is JSInt) ? 42 : 42.2; |
operator ~/(other) => 42; |
- operator /(other) => (this is JSInt) ? 42 : 42.0; |
- operator *(other) => (this is JSInt) ? 42 : 42.0; |
- operator %(other) => (this is JSInt) ? 42 : 42.0; |
+ operator /(other) => (this is JSInt) ? 42 : 42.2; |
+ operator *(other) => (this is JSInt) ? 42 : 42.2; |
+ operator %(other) => (this is JSInt) ? 42 : 42.2; |
operator <<(other) => 42; |
operator >>(other) => 42; |
operator |(other) => 42; |
@@ -143,8 +143,8 @@ |
operator ==(other) => true; |
get hashCode => throw "JSNumber.hashCode not implemented."; |
- abs() => (this is JSInt) ? 42 : 42.0; |
- remainder(other) => (this is JSInt) ? 42 : 42.0; |
+ abs() => (this is JSInt) ? 42 : 42.2; |
+ remainder(other) => (this is JSInt) ? 42 : 42.2; |
truncate() => 42; |
} |
class JSInt extends JSNumber implements int { |