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

Unified Diff: runtime/lib/double.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/double.cc
diff --git a/runtime/lib/double.cc b/runtime/lib/double.cc
index 95d5ad34758dab248cc00299cf9ddef626cd78c8..88526887778ff87e4c3ef040df43f46e388f6c1f 100644
--- a/runtime/lib/double.cc
+++ b/runtime/lib/double.cc
@@ -171,7 +171,7 @@ DEFINE_NATIVE_ENTRY(Double_toInt, 1) {
GrowableArray<const Object*> args;
args.Add(&String::ZoneHandle(String::New(
"Infinity or NaN toInt")));
- Exceptions::ThrowByType(Exceptions::kBadNumberFormat, args);
+ Exceptions::ThrowByType(Exceptions::kFormat, args);
}
double result = trunc(arg.value());
if ((Smi::kMinValue <= result) && (result <= Smi::kMaxValue)) {

Powered by Google App Engine
This is Rietveld 408576698