Chromium Code Reviews| Index: src/api.cc |
| diff --git a/src/api.cc b/src/api.cc |
| index e313812a6ceafc3adc70cebe1d00b3c663967c21..8f4c22d788139948895479e9145671270e75243e 100644 |
| --- a/src/api.cc |
| +++ b/src/api.cc |
| @@ -7267,9 +7267,10 @@ Maybe<bool> Promise::Resolver::Reject(Local<Context> context, |
| Local<Value> value) { |
| PREPARE_FOR_EXECUTION_PRIMITIVE(context, Promise_Resolver, Resolve, bool); |
| auto self = Utils::OpenHandle(this); |
| - i::Handle<i::Object> argv[] = {self, Utils::OpenHandle(*value)}; |
| + i::Handle<i::Object> argv[] = {self, Utils::OpenHandle(*value), |
| + isolate->factory()->ToBoolean(true)}; |
|
adamk
2017/01/13 21:43:37
Please add a comment for what true means here.
gsathya
2017/01/13 22:34:46
Done.
|
| has_pending_exception = |
| - i::Execution::Call(isolate, isolate->promise_reject(), |
| + i::Execution::Call(isolate, isolate->promise_internal_reject(), |
| isolate->factory()->undefined_value(), arraysize(argv), |
| argv) |
| .is_null(); |