Chromium Code Reviews| Index: src/builtins/builtins-promise.cc |
| diff --git a/src/builtins/builtins-promise.cc b/src/builtins/builtins-promise.cc |
| index 0d0238d267e48a339b05d68b72461858392c3611..53dc648fb79db922d4d73fa360db8088f22ff58b 100644 |
| --- a/src/builtins/builtins-promise.cc |
| +++ b/src/builtins/builtins-promise.cc |
| @@ -746,7 +746,7 @@ void PromiseBuiltinsAssembler::InternalResolvePromise(Node* context, |
| Goto(&reject); |
| Bind(&reject); |
| - // Don't cause a debug event as this case is forwarding a rejection |
| + // Don't cause a debug event as this case is forwarding a rejection. |
| InternalPromiseReject(context, promise, thenable_value, false); |
| PromiseSetHasHandler(result); |
| Goto(&out); |
| @@ -829,7 +829,8 @@ void PromiseBuiltinsAssembler::InternalResolvePromise(Node* context, |
| // 9.a Return RejectPromise(promise, then.[[Value]]). |
| Bind(&if_rejectpromise); |
| { |
| - InternalPromiseReject(context, promise, var_reason.value(), true); |
| + // Don't cause a debug event as this case is forwarding a rejection. |
| + InternalPromiseReject(context, promise, var_reason.value(), false); |
|
Yang
2017/03/06 11:45:02
In the test case we break twice, once in the gette
|
| Goto(&out); |
| } |