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

Unified Diff: runtime/lib/date.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/date.cc
diff --git a/runtime/lib/date.cc b/runtime/lib/date.cc
index 8e9f77f9ef3bb31cd3462b2ffc1fbc2162b507c1..67259865d520971c41ae34b25ae0899062347fa3 100644
--- a/runtime/lib/date.cc
+++ b/runtime/lib/date.cc
@@ -21,7 +21,7 @@ DEFINE_NATIVE_ENTRY(DateNatives_timeZoneName, 1) {
if (seconds < 0 || seconds > kMaxAllowedSeconds) {
GrowableArray<const Object*> args;
args.Add(&dart_seconds);
- Exceptions::ThrowByType(Exceptions::kIllegalArgument, args);
+ Exceptions::ThrowByType(Exceptions::kArgument, args);
}
const char* name = OS::GetTimeZoneName(seconds);
return String::New(name);
@@ -34,7 +34,7 @@ DEFINE_NATIVE_ENTRY(DateNatives_timeZoneOffsetInSeconds, 1) {
if (seconds < 0 || seconds > kMaxAllowedSeconds) {
GrowableArray<const Object*> args;
args.Add(&dart_seconds);
- Exceptions::ThrowByType(Exceptions::kIllegalArgument, args);
+ Exceptions::ThrowByType(Exceptions::kArgument, args);
}
int offset = OS::GetTimeZoneOffsetInSeconds(seconds);
return Integer::New(offset);

Powered by Google App Engine
This is Rietveld 408576698