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

Unified Diff: runtime/lib/integers.dart

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: runtime/lib/integers.dart
diff --git a/runtime/lib/integers.dart b/runtime/lib/integers.dart
index 9fcab19b6e9abf9a8995061db13b8b2d81eb6864..bc52b78dd7dd278cef97ff314c25ca54e6c465e4 100644
--- a/runtime/lib/integers.dart
+++ b/runtime/lib/integers.dart
@@ -6,7 +6,7 @@
// - shift amount must be a Smi.
class _IntegerImplementation {
factory _IntegerImplementation._uninstantiable() {
- throw const UnsupportedOperationException(
+ throw new StateError(
"_IntegerImplementation can only be allocated by the VM");
}
num operator +(num other) {
@@ -182,7 +182,7 @@ class _IntegerImplementation {
class _Smi extends _IntegerImplementation implements int {
factory _Smi._uninstantiable() {
- throw const UnsupportedOperationException(
+ throw new StateError(
"_Smi can only be allocated by the VM");
}
int get hashCode {
@@ -196,7 +196,7 @@ class _Smi extends _IntegerImplementation implements int {
// Represents integers that cannot be represented by Smi but fit into 64bits.
class _Mint extends _IntegerImplementation implements int {
factory _Mint._uninstantiable() {
- throw const UnsupportedOperationException(
+ throw new StateError(
"_Mint can only be allocated by the VM");
}
int get hashCode {
@@ -221,7 +221,7 @@ class _Mint extends _IntegerImplementation implements int {
// Bigint.
class _Bigint extends _IntegerImplementation implements int {
factory _Bigint._uninstantiable() {
- throw const UnsupportedOperationException(
+ throw new StateError(
"_Bigint can only be allocated by the VM");
}
int get hashCode {

Powered by Google App Engine
This is Rietveld 408576698