Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 8ff302f8d82702fa40c471082186a28ed91c8e90..bfd17dbb8dc877da56891f1ee5c89cc1688b3ea8 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6043,8 +6043,9 @@ MaybeLocal<v8::Value> v8::Date::New(Local<Context> context, double time) { |
} |
PREPARE_FOR_EXECUTION(context, "Date::New", Value); |
Local<Value> result; |
- has_pending_exception = |
- !ToLocal<Value>(i::Execution::NewDate(isolate, time), &result); |
+ has_pending_exception = !ToLocal<Value>( |
+ i::JSDate::New(isolate->date_function(), isolate->date_function(), time), |
+ &result); |
RETURN_ON_FAILED_EXECUTION(Value); |
RETURN_ESCAPED(result); |
} |