| Index: lib/compiler/implementation/tree/nodes.dart
|
| diff --git a/lib/compiler/implementation/tree/nodes.dart b/lib/compiler/implementation/tree/nodes.dart
|
| index 1e356539a9434db3c0ed19a13c0affec3fb8bd34..5e68262adfa0c657bc2c623fdc801a7796ff6cdc 100644
|
| --- a/lib/compiler/implementation/tree/nodes.dart
|
| +++ b/lib/compiler/implementation/tree/nodes.dart
|
| @@ -662,7 +662,7 @@ class LiteralInt extends Literal<int> {
|
| Token valueToken = token;
|
| if (valueToken.kind === PLUS_TOKEN) valueToken = valueToken.next;
|
| return Math.parseInt(valueToken.value.slowToString());
|
| - } catch (BadNumberFormatException ex) {
|
| + } catch (FormatException ex) {
|
| (this.handler)(token, ex);
|
| }
|
| }
|
| @@ -681,7 +681,7 @@ class LiteralDouble extends Literal<double> {
|
| Token valueToken = token;
|
| if (valueToken.kind === PLUS_TOKEN) valueToken = valueToken.next;
|
| return Math.parseDouble(valueToken.value.slowToString());
|
| - } catch (BadNumberFormatException ex) {
|
| + } catch (FormatException ex) {
|
| (this.handler)(token, ex);
|
| }
|
| }
|
|
|