| Index: lib/compiler/implementation/lib/js_helper.dart
|
| diff --git a/lib/compiler/implementation/lib/js_helper.dart b/lib/compiler/implementation/lib/js_helper.dart
|
| index afd34a9022e7b516ea255f10e5e7330e92e62f3e..05805412ce592b67d0b9792754d669d9d9fe689f 100644
|
| --- a/lib/compiler/implementation/lib/js_helper.dart
|
| +++ b/lib/compiler/implementation/lib/js_helper.dart
|
| @@ -672,7 +672,7 @@ class MathNatives {
|
| if (!JS('bool',
|
| @'/^\s*[+-]?(?:0[xX][abcdefABCDEF0-9]+|\d+)\s*$/.test(#)',
|
| str)) {
|
| - throw new BadNumberFormatException(str);
|
| + throw new FormatException(str);
|
| }
|
| var trimmed = str.trim();
|
| var base = 10;;
|
| @@ -681,7 +681,7 @@ class MathNatives {
|
| base = 16;
|
| }
|
| var ret = JS('num', @'parseInt(#, #)', trimmed, base);
|
| - if (ret.isNaN()) throw new BadNumberFormatException(str);
|
| + if (ret.isNaN()) throw new FormatException(str);
|
| return ret;
|
| }
|
|
|
| @@ -693,7 +693,7 @@ class MathNatives {
|
| ret = JS('num', @'parseInt(#)', str);
|
| }
|
| if (ret.isNaN() && str != 'NaN' && str != '-NaN') {
|
| - throw new BadNumberFormatException(str);
|
| + throw new FormatException(str);
|
| }
|
| return ret;
|
| }
|
|
|