| Index: pkg/fixnum/lib/src/int32.dart
|
| diff --git a/pkg/fixnum/lib/src/int32.dart b/pkg/fixnum/lib/src/int32.dart
|
| index 1e139d2478224e407cb371b45a1fe3b1859cc2a1..c1da15bc524c855465469d96bc52c7abd567b45f 100644
|
| --- a/pkg/fixnum/lib/src/int32.dart
|
| +++ b/pkg/fixnum/lib/src/int32.dart
|
| @@ -64,7 +64,7 @@ class Int32 implements IntX {
|
| // TODO(rice) - Make this faster by converting several digits at once.
|
| static Int32 parseRadix(String s, int radix) {
|
| if ((radix <= 1) || (radix > 16)) {
|
| - throw "Bad radix: $radix";
|
| + throw new ArgumentError("Bad radix: $radix");
|
| }
|
| Int32 x = ZERO;
|
| for (int i = 0; i < s.length; i++) {
|
| @@ -235,7 +235,7 @@ class Int32 implements IntX {
|
|
|
| Int32 operator <<(int n) {
|
| if (n < 0) {
|
| - throw new ArgumentError("$n");
|
| + throw new ArgumentError(n);
|
| }
|
| n &= 31;
|
| return new Int32.fromInt(_i << n);
|
| @@ -243,7 +243,7 @@ class Int32 implements IntX {
|
|
|
| Int32 operator >>(int n) {
|
| if (n < 0) {
|
| - throw new ArgumentError("$n");
|
| + throw new ArgumentError(n);
|
| }
|
| n &= 31;
|
| int value;
|
| @@ -257,7 +257,7 @@ class Int32 implements IntX {
|
|
|
| Int32 shiftRightUnsigned(int n) {
|
| if (n < 0) {
|
| - throw new ArgumentError("$n");
|
| + throw new ArgumentError(n);
|
| }
|
| n &= 31;
|
| int value;
|
|
|