| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 3e5264dd94ab154bdbd2f775e75175f0164df2c7..a12871220e050ce9a2b5dcf5b7f96ef9c325696f 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -2034,11 +2034,13 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
|
|
|
| InstallSpeciesGetter(promise_fun);
|
|
|
| - SimpleInstallFunction(promise_fun, "resolve", Builtins::kPromiseResolve, 1,
|
| - true, DONT_ENUM);
|
| + Handle<JSFunction> resolve = SimpleInstallFunction(
|
| + promise_fun, "resolve", Builtins::kPromiseResolve, 1, true, DONT_ENUM);
|
| + resolve->shared()->set_is_promise_builtin(true);
|
|
|
| - SimpleInstallFunction(promise_fun, "reject", Builtins::kPromiseReject, 1,
|
| - true, DONT_ENUM);
|
| + Handle<JSFunction> reject = SimpleInstallFunction(
|
| + promise_fun, "reject", Builtins::kPromiseReject, 1, true, DONT_ENUM);
|
| + reject->shared()->set_is_promise_builtin(true);
|
|
|
| Handle<Map> prototype_map(prototype->map());
|
| Map::SetShouldBeFastPrototypeMap(prototype_map, true, isolate);
|
| @@ -3517,6 +3519,7 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate,
|
| Builtins::kAsyncFunctionAwaitCaught, 3, false);
|
| InstallWithIntrinsicDefaultProto(
|
| isolate, function, Context::ASYNC_FUNCTION_AWAIT_CAUGHT_INDEX);
|
| + function->shared()->set_is_promise_builtin(true);
|
| }
|
|
|
| {
|
| @@ -3525,6 +3528,7 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate,
|
| Builtins::kAsyncFunctionAwaitUncaught, 3, false);
|
| InstallWithIntrinsicDefaultProto(
|
| isolate, function, Context::ASYNC_FUNCTION_AWAIT_UNCAUGHT_INDEX);
|
| + function->shared()->set_is_promise_builtin(true);
|
| }
|
|
|
| {
|
|
|