Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(968)

Unified Diff: compiler/lib/implementation/number.dart

Issue 8286001: Changes "is" and equality checks to strictly check for primitive types, fix a couple of (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: compiler/lib/implementation/number.dart
===================================================================
--- compiler/lib/implementation/number.dart (revision 400)
+++ compiler/lib/implementation/number.dart (working copy)
@@ -55,8 +55,7 @@
return truncated;
}
- NumberImplementation toDouble() { return this; }
-
+ NumberImplementation toDouble() native;
String toString() native;
String toStringAsFixed(int fractionDigits) native;
String toStringAsExponential(int fractionDigits) native;
@@ -64,4 +63,5 @@
String toRadixString(int radix) native;
int hashCode() native;
+ get dynamic() { return toDouble(); }
}

Powered by Google App Engine
This is Rietveld 408576698