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

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: ADded test expectations. 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
« no previous file with comments | « runtime/lib/immutable_map.dart ('k') | runtime/lib/print_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/integers.dart
diff --git a/runtime/lib/integers.dart b/runtime/lib/integers.dart
index c82e090df4a76d48733b68e5d596c5b501713bb6..897bea96f3aa2d74ff6189cf0292b363370cbf34 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 UnsupportedError(
"_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 UnsupportedError(
"_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 UnsupportedError(
"_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 UnsupportedError(
"_Bigint can only be allocated by the VM");
}
int get hashCode {
« no previous file with comments | « runtime/lib/immutable_map.dart ('k') | runtime/lib/print_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698