Index: dart/lib/compiler/implementation/lib/interceptors.dart |
diff --git a/dart/lib/compiler/implementation/lib/interceptors.dart b/dart/lib/compiler/implementation/lib/interceptors.dart |
index 8ca99f3a3151afe080eb7ec529b72c4cebdb34b0..a851330645a26aecccdccaa146f20270aef02221 100644 |
--- a/dart/lib/compiler/implementation/lib/interceptors.dart |
+++ b/dart/lib/compiler/implementation/lib/interceptors.dart |
@@ -414,6 +414,12 @@ isInfinite(receiver) { |
|| JS('bool', @'# == -Infinity', receiver); |
} |
+negate(receiver) { |
+ if (receiver is !num) return UNINTERCEPTED(receiver.negate()); |
+ |
+ return JS('num', @'-#', receiver); |
+} |
+ |
round(receiver) { |
if (receiver is !num) return UNINTERCEPTED(receiver.round()); |