| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index e8f8846a6a11b2646f8c042e3d8aed2e27229f8d..4547289db17f58b0d8c140e697304e58d9d40383 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -1899,6 +1899,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);
|
|
|
| @@ -1914,14 +1917,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);
|
| @@ -1981,7 +1976,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);
|
| }
|
|
|