Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: src/bootstrapper.cc

Issue 1511893002: Fix Promise intrinsicDefaultProto (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/contexts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698