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

Unified Diff: runtime/lib/math.cc

Issue 10850034: Rename BadNumberFormatException -> FormatException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 4 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
« no previous file with comments | « runtime/lib/double.dart ('k') | runtime/vm/exceptions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/math.cc
diff --git a/runtime/lib/math.cc b/runtime/lib/math.cc
index 851fdad6737186c8930a256d9146dc9b39f8b731..32e8ebc408626288a76fa2941dec71f301327ee9 100644
--- a/runtime/lib/math.cc
+++ b/runtime/lib/math.cc
@@ -124,7 +124,7 @@ DEFINE_NATIVE_ENTRY(MathNatives_parseInt, 1) {
} else {
GrowableArray<const Object*> args;
args.Add(&value);
- Exceptions::ThrowByType(Exceptions::kBadNumberFormat, args);
+ Exceptions::ThrowByType(Exceptions::kFormat, args);
}
}
@@ -176,7 +176,7 @@ DEFINE_NATIVE_ENTRY(MathNatives_parseDouble, 1) {
GrowableArray<const Object*> args;
args.Add(&value);
- Exceptions::ThrowByType(Exceptions::kBadNumberFormat, args);
+ Exceptions::ThrowByType(Exceptions::kFormat, args);
}
} // namespace dart
« no previous file with comments | « runtime/lib/double.dart ('k') | runtime/vm/exceptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698