Commit 2d13f6ec authored by verwaest's avatar verwaest Committed by Commit bot

Fix Promise intrinsicDefaultProto

BUG=v8:3900, v8:3931, v8:1543, v8:3330
LOG=n

Review URL: https://codereview.chromium.org/1511893002

Cr-Commit-Position: refs/heads/master@{#32731}
parent e110a2a8
......@@ -2495,6 +2495,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();
......
......@@ -137,6 +137,7 @@ enum BindingFlags {
V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \
V(PROMISE_CHAIN_INDEX, JSFunction, promise_chain) \
V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \
V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \
V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \
promise_has_user_defined_reject_handler) \
V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \
......
......@@ -307,7 +307,7 @@
"Map",
"Number",
"Object",
// "Promise",
["Promise", [(resolve, reject)=>{}]],
"RangeError",
"ReferenceError",
"RegExp",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment