| 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 {
|
|
|