Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 87a6ba519233bd1c08089f55e0fb4bb0061daba7..9d2953eed67e549f51005ce24857a350256c8a05 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1891,6 +1891,9 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
SimpleInstallFunction(promise_fun, "resolve", Builtins::kPromiseResolve, 1, |
true, DONT_ENUM); |
+ SimpleInstallFunction(promise_fun, "reject", Builtins::kPromiseReject, 1, |
+ true, DONT_ENUM); |
+ |
Handle<Map> prototype_map(prototype->map()); |
Map::SetShouldBeFastPrototypeMap(prototype_map, true, isolate); |
@@ -1906,14 +1909,6 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
isolate, function, Context::PROMISE_INTERNAL_CONSTRUCTOR_INDEX); |
} |
- { // Internal: PromiseCreateAndSet |
- Handle<JSFunction> function = |
- SimpleCreateFunction(isolate, factory->empty_string(), |
- Builtins::kPromiseCreateAndSet, 2, false); |
- InstallWithIntrinsicDefaultProto(isolate, function, |
- Context::PROMISE_CREATE_AND_SET_INDEX); |
- } |
- |
{ // Internal: IsPromise |
Handle<JSFunction> function = SimpleCreateFunction( |
isolate, factory->empty_string(), Builtins::kIsPromise, 1, false); |
@@ -1973,7 +1968,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
isolate); |
info = |
factory->NewSharedFunctionInfo(factory->empty_string(), code, false); |
- info->set_internal_formal_parameter_count(2); |
+ info->set_internal_formal_parameter_count(1); |
info->set_length(1); |
native_context()->set_promise_reject_shared_fun(*info); |
} |