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); |