| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index c9069db0826a3596d082b43aa027a90365399cf7..0365c92378c4b5332e4061bd824ace4ceacf75cb 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -1923,11 +1923,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);
|
| @@ -3406,6 +3408,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);
|
| }
|
|
|
| {
|
| @@ -3414,6 +3417,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);
|
| }
|
|
|
| {
|
|
|