| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index e1850c8adb7cc3164bc81ff4e7098544a7c2fea4..b5b1240b6ed36a3e00ada30a820bc92f75baba9b 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -2111,6 +2111,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
|
| Handle<Code> code =
|
| handle(isolate->builtins()->builtin(Builtins::kPromiseResolveClosure),
|
| isolate);
|
| + code->set_is_promise_rejection(true);
|
| Handle<SharedFunctionInfo> info =
|
| factory->NewSharedFunctionInfo(factory->empty_string(), code, false);
|
| info->set_internal_formal_parameter_count(1);
|
| @@ -3526,6 +3527,8 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate,
|
| Handle<JSFunction> function =
|
| SimpleCreateFunction(isolate, factory->empty_string(),
|
| Builtins::kAsyncFunctionAwaitCaught, 3, false);
|
| + isolate->builtins()->AsyncFunctionAwaitCaught()->set_is_promise_rejection(
|
| + true);
|
| InstallWithIntrinsicDefaultProto(
|
| isolate, function, Context::ASYNC_FUNCTION_AWAIT_CAUGHT_INDEX);
|
| }
|
| @@ -3534,6 +3537,9 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate,
|
| Handle<JSFunction> function =
|
| SimpleCreateFunction(isolate, factory->empty_string(),
|
| Builtins::kAsyncFunctionAwaitUncaught, 3, false);
|
| + isolate->builtins()
|
| + ->AsyncFunctionAwaitUncaught()
|
| + ->set_is_promise_rejection(true);
|
| InstallWithIntrinsicDefaultProto(
|
| isolate, function, Context::ASYNC_FUNCTION_AWAIT_UNCAUGHT_INDEX);
|
| }
|
|
|