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

Unified Diff: sdk/lib/core/errors.dart

Issue 15743017: Adds a flag to the standalone vm to throw an exception on 53-bit integer overflow. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | « runtime/vm/symbols.h ('k') | tests/standalone/53bit_overflow_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/errors.dart
===================================================================
--- sdk/lib/core/errors.dart (revision 23635)
+++ sdk/lib/core/errors.dart (working copy)
@@ -235,6 +235,13 @@
String toString() => "Stack Overflow";
}
+class FiftyThreeBitOverflowError implements Error {
+ final Object value;
+
+ const FiftyThreeBitOverflowError(this.value);
+ String toString() => "53-bit Overflow: $value";
+}
+
/**
* Error thrown when a lazily initialized variable cannot be initialized.
*
« no previous file with comments | « runtime/vm/symbols.h ('k') | tests/standalone/53bit_overflow_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698