| Index: sdk/lib/_internal/compiler/js_lib/js_number.dart
|
| diff --git a/sdk/lib/_internal/compiler/js_lib/js_number.dart b/sdk/lib/_internal/compiler/js_lib/js_number.dart
|
| index c05f4f48173b1f930bb84ce15aff8ae4e0bc6612..c1357e02f73026ea9207f32b86a29d26cc44d01b 100644
|
| --- a/sdk/lib/_internal/compiler/js_lib/js_number.dart
|
| +++ b/sdk/lib/_internal/compiler/js_lib/js_number.dart
|
| @@ -167,7 +167,9 @@ class JSNumber extends Interceptor implements num {
|
|
|
| String toRadixString(int radix) {
|
| checkInt(radix);
|
| - if (radix < 2 || radix > 36) throw new RangeError(radix);
|
| + if (radix < 2 || radix > 36) {
|
| + throw new RangeError.range(radix, 2, 36, "radix");
|
| + }
|
| String result = JS('String', r'#.toString(#)', this, radix);
|
| const int rightParenCode = 0x29;
|
| if (result.codeUnitAt(result.length - 1) != rightParenCode) {
|
|
|