| Index: src/runtime/runtime-i18n.cc
|
| diff --git a/src/runtime/runtime-i18n.cc b/src/runtime/runtime-i18n.cc
|
| index 8b0c98f1614b47c55791246b91e5ed0ed9de177c..fafadb6fd27e233f85ff6e13010117cbf0c64846 100644
|
| --- a/src/runtime/runtime-i18n.cc
|
| +++ b/src/runtime/runtime-i18n.cc
|
| @@ -389,10 +389,11 @@ RUNTIME_FUNCTION(Runtime_InternalDateParse) {
|
| UDate date = date_format->parse(u_date, status);
|
| if (U_FAILURE(status)) return isolate->heap()->undefined_value();
|
|
|
| - Handle<Object> result;
|
| + Handle<JSDate> result;
|
| ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| - isolate, result, Execution::NewDate(isolate, static_cast<double>(date)));
|
| - DCHECK(result->IsJSDate());
|
| + isolate, result,
|
| + JSDate::New(isolate->date_function(), isolate->date_function(),
|
| + static_cast<double>(date)));
|
| return *result;
|
| }
|
|
|
|
|