| Index: src/runtime/runtime-date.cc
|
| diff --git a/src/runtime/runtime-date.cc b/src/runtime/runtime-date.cc
|
| index 7c634c297dbce1caa96728303469f506e4e1cf15..844ca25fd5557eff7e7fb074cda10747956ac34c 100644
|
| --- a/src/runtime/runtime-date.cc
|
| +++ b/src/runtime/runtime-date.cc
|
| @@ -7,7 +7,6 @@
|
| #include "src/arguments.h"
|
| #include "src/date.h"
|
| #include "src/dateparser-inl.h"
|
| -#include "src/messages.h"
|
| #include "src/runtime/runtime-utils.h"
|
|
|
| namespace v8 {
|
| @@ -63,8 +62,8 @@
|
| RUNTIME_FUNCTION(Runtime_ThrowNotDateError) {
|
| HandleScope scope(isolate);
|
| DCHECK(args.length() == 0);
|
| - THROW_NEW_ERROR_RETURN_FAILURE(isolate,
|
| - NewTypeError(MessageTemplate::kNotDateObject));
|
| + THROW_NEW_ERROR_RETURN_FAILURE(
|
| + isolate, NewTypeError("not_date_object", HandleVector<Object>(NULL, 0)));
|
| }
|
|
|
|
|
| @@ -180,7 +179,8 @@
|
| if (!obj->IsJSDate()) {
|
| HandleScope scope(isolate);
|
| THROW_NEW_ERROR_RETURN_FAILURE(
|
| - isolate, NewTypeError(MessageTemplate::kNotDateObject));
|
| + isolate,
|
| + NewTypeError("not_date_object", HandleVector<Object>(NULL, 0)));
|
| }
|
| JSDate* date = JSDate::cast(obj);
|
| if (index == 0) return date->value();
|
|
|