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

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: 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/bin/http_utils.dart ('k') | runtime/lib/double.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)) {
« no previous file with comments | « runtime/bin/http_utils.dart ('k') | runtime/lib/double.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698