| Index: lib/compiler/implementation/lib/math.dartp
|
| diff --git a/lib/compiler/implementation/lib/math.dartp b/lib/compiler/implementation/lib/math.dartp
|
| index 66000c89dca3cf0f75c2dac9bf937e0b88296dec..f6be1d835987afaff8407bf0fed4dd563035889a 100644
|
| --- a/lib/compiler/implementation/lib/math.dartp
|
| +++ b/lib/compiler/implementation/lib/math.dartp
|
| @@ -16,7 +16,7 @@ patch int parseInt(str) {
|
| 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;
|
| @@ -25,7 +25,7 @@ patch int parseInt(str) {
|
| 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;
|
| }
|
|
|
| @@ -37,7 +37,7 @@ patch double parseDouble(String str) {
|
| ret = JS('num', @'parseInt(#)', str);
|
| }
|
| if (ret.isNaN() && str != 'NaN' && str != '-NaN') {
|
| - throw new BadNumberFormatException(str);
|
| + throw new FormatException(str);
|
| }
|
| return ret;
|
| }
|
|
|