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

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: 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: 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

Powered by Google App Engine
This is Rietveld 408576698