Index: lib/date.cc |
=================================================================== |
--- lib/date.cc (revision 16285) |
+++ lib/date.cc (working copy) |
@@ -20,8 +20,8 @@ |
Integer, dart_seconds, arguments->NativeArgAt(0)); |
int64_t seconds = dart_seconds.AsInt64Value(); |
if (seconds < 0 || seconds > kMaxAllowedSeconds) { |
- GrowableArray<const Object*> args; |
- args.Add(&dart_seconds); |
+ const Array& args = Array::Handle(Array::New(1)); |
+ args.SetAt(0, dart_seconds); |
Exceptions::ThrowByType(Exceptions::kArgument, args); |
} |
const char* name = OS::GetTimeZoneName(seconds); |
@@ -34,8 +34,8 @@ |
Integer, dart_seconds, arguments->NativeArgAt(0)); |
int64_t seconds = dart_seconds.AsInt64Value(); |
if (seconds < 0 || seconds > kMaxAllowedSeconds) { |
- GrowableArray<const Object*> args; |
- args.Add(&dart_seconds); |
+ const Array& args = Array::Handle(Array::New(1)); |
+ args.SetAt(0, dart_seconds); |
Exceptions::ThrowByType(Exceptions::kArgument, args); |
} |
int offset = OS::GetTimeZoneOffsetInSeconds(seconds); |