Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 4eead68a6a89821293b9fc13e0d6891fe0d6cdb9..e2e0cd6992ff69f2ece4776a42a53c460382a20c 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2492,6 +2492,8 @@ bool Genesis::InstallNatives(ContextType context_type) { |
function->initial_map()->set_instance_type(JS_PROMISE_TYPE); |
function->shared()->set_construct_stub( |
*isolate()->builtins()->JSBuiltinsConstructStub()); |
+ InstallWithIntrinsicDefaultProto(isolate(), function, |
+ Context::PROMISE_FUNCTION_INDEX); |
} |
InstallBuiltinFunctionIds(); |