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

Unified Diff: runtime/lib/double.cc

Issue 10989013: Change IllegalArgumentException to ArgumentError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated co19 test expectations. Created 8 years, 3 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 6a1304dd086379c727a29ec22c4bb2b0cdb4c970..b60644b63704317ee1db0ef853d51cb470e944d0 100644
--- a/runtime/lib/double.cc
+++ b/runtime/lib/double.cc
@@ -188,7 +188,7 @@ DEFINE_NATIVE_ENTRY(Double_toStringAsFixed, 2) {
GrowableArray<const Object*> args;
args.Add(&String::ZoneHandle(String::New(
"Illegal arguments to double.toStringAsFixed")));
- Exceptions::ThrowByType(Exceptions::kIllegalArgument, args);
+ Exceptions::ThrowByType(Exceptions::kArgument, args);
return Object::null();
}
}
@@ -206,7 +206,7 @@ DEFINE_NATIVE_ENTRY(Double_toStringAsExponential, 2) {
GrowableArray<const Object*> args;
args.Add(&String::ZoneHandle(String::New(
"Illegal arguments to double.toStringAsExponential")));
- Exceptions::ThrowByType(Exceptions::kIllegalArgument, args);
+ Exceptions::ThrowByType(Exceptions::kArgument, args);
return Object::null();
}
}
@@ -223,7 +223,7 @@ DEFINE_NATIVE_ENTRY(Double_toStringAsPrecision, 2) {
GrowableArray<const Object*> args;
args.Add(&String::ZoneHandle(String::New(
"Illegal arguments to double.toStringAsPrecision")));
- Exceptions::ThrowByType(Exceptions::kIllegalArgument, args);
+ Exceptions::ThrowByType(Exceptions::kArgument, args);
return Object::null();
}
}

Powered by Google App Engine
This is Rietveld 408576698