Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(476)

Unified Diff: lib/compiler/implementation/tree/nodes.dart

Issue 10850034: Rename BadNumberFormatException -> FormatException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
}

Powered by Google App Engine
This is Rietveld 408576698