| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index c47854cf1b1bfc184fa1e43c8589cc924b0a7ccb..48a7cf509716f4f0abc035485f24ba5d20940d18 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -1902,17 +1902,37 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
|
| { // Internal: PerformPromiseThen
|
| Handle<JSFunction> function =
|
| SimpleCreateFunction(isolate, factory->empty_string(),
|
| - Builtins::kPerformPromiseThen, 4, false);
|
| + Builtins::kPerformPromiseThen, 4, true);
|
| InstallWithIntrinsicDefaultProto(isolate, function,
|
| Context::PERFORM_PROMISE_THEN_INDEX);
|
| }
|
|
|
| { // Internal: ResolvePromise
|
| + Handle<JSFunction> function = SimpleCreateFunction(
|
| + isolate, factory->empty_string(), Builtins::kResolvePromise, 2, true);
|
| + InstallWithIntrinsicDefaultProto(isolate, function,
|
| + Context::PROMISE_RESOLVE_INDEX);
|
| + }
|
| +
|
| + { // Internal: Promisehandle
|
| + Handle<JSFunction> function = SimpleCreateFunction(
|
| + isolate, factory->empty_string(), Builtins::kPromiseHandle, 3, true);
|
| + InstallWithIntrinsicDefaultProto(isolate, function,
|
| + Context::PROMISE_HANDLE_INDEX);
|
| + // Set up catch prediction
|
| + Handle<Code> promise_handle = isolate->builtins()->PromiseHandle();
|
| + promise_handle->set_is_promise_rejection(true);
|
| + }
|
| +
|
| + { // Internal: Promisehandle
|
| Handle<JSFunction> function =
|
| SimpleCreateFunction(isolate, factory->empty_string(),
|
| - Builtins::kResolvePromise, 2, false);
|
| + Builtins::kPromiseHandleReject, 3, true);
|
| InstallWithIntrinsicDefaultProto(isolate, function,
|
| - Context::PROMISE_RESOLVE_INDEX);
|
| + Context::PROMISE_HANDLE_REJECT_INDEX);
|
| + // Set up catch prediction
|
| + Handle<Code> promise_handle = isolate->builtins()->PromiseHandleReject();
|
| + promise_handle->set_is_exception_caught(true);
|
| }
|
|
|
| {
|
|
|