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

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

Issue 9240005: Add number checks to the numeric operations in dartc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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
« no previous file with comments | « no previous file | compiler/lib/implementation/number.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/lib/implementation/number.dart
diff --git a/compiler/lib/implementation/number.dart b/compiler/lib/implementation/number.dart
index e30e394634ce95d7c8034afce02917bc27e68624..47f250f83212e0b43ed7e9995745cb97a294ce8e 100644
--- a/compiler/lib/implementation/number.dart
+++ b/compiler/lib/implementation/number.dart
@@ -87,3 +87,9 @@ class NumberImplementation implements int, double native "Number" {
int hashCode() native;
get dynamic() { return toDouble(); }
}
+
+class _NumberJsUtil {
+ static void _throwIllegalArgumentException(var argument) native {
+ throw new IllegalArgumentException([argument]);
+ }
+}
« no previous file with comments | « no previous file | compiler/lib/implementation/number.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698