Chromium Code Reviews| Index: src/bootstrapper.cc |
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
| index 9d1789143225916bcf774cce7f44fe2b3e34acaa..9962922abe87f86e301d26fbd09140422d9e2e19 100644 |
| --- a/src/bootstrapper.cc |
| +++ b/src/bootstrapper.cc |
| @@ -1971,6 +1971,14 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
| promise_handle->set_is_exception_caught(true); |
| } |
| + { // Internal: InternalPromiseReject |
| + Handle<JSFunction> function = |
| + SimpleCreateFunction(isolate, factory->empty_string(), |
| + Builtins::kInternalPromiseReject, 3, true); |
|
adamk
2017/01/13 20:31:33
Why does this need an arguments adapter?
gsathya
2017/01/13 21:12:40
I was initially installing this directly on the ex
|
| + InstallWithIntrinsicDefaultProto(isolate, function, |
| + Context::PROMISE_INTERNAL_REJECT_INDEX); |
| + } |
| + |
| { |
| Handle<Code> code = |
| handle(isolate->builtins()->builtin(Builtins::kPromiseResolveClosure), |