Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 1aafd0b709f0856879a529a74102bf435705e40a..4b4d8c589fbd16dbade34602383e128bf10bc587 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -7221,7 +7221,7 @@ MaybeLocal<Promise::Resolver> Promise::Resolver::New(Local<Context> context) { |
PREPARE_FOR_EXECUTION(context, Promise_Resolver, New, Resolver); |
i::Handle<i::Object> result; |
has_pending_exception = |
- !i::Execution::Call(isolate, isolate->promise_create(), |
+ !i::Execution::Call(isolate, isolate->promise_internal_constructor(), |
isolate->factory()->undefined_value(), 0, NULL) |
.ToHandle(&result); |
RETURN_ON_FAILED_EXECUTION(Promise::Resolver); |