| Index: lib/compiler/implementation/lib/math_patch.dart
|
| diff --git a/lib/compiler/implementation/lib/math_patch.dart b/lib/compiler/implementation/lib/math_patch.dart
|
| index 12d505708fc511dfec6b665c5d703f7930cc6361..0d16fc865051d9aaa11690bfcaf683139eb2b027 100644
|
| --- a/lib/compiler/implementation/lib/math_patch.dart
|
| +++ b/lib/compiler/implementation/lib/math_patch.dart
|
| @@ -52,7 +52,7 @@ class _Random implements Random {
|
| const _Random();
|
|
|
| int nextInt(int max) {
|
| - if (max < 0) throw new IllegalArgumentException("negative max: $max");
|
| + if (max < 0) throw new ArgumentError("negative max: $max");
|
| if (max > 0xFFFFFFFF) max = 0xFFFFFFFF;
|
| return JS("int", "(Math.random() * #) >>> 0", max);
|
| }
|
|
|