Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
use ! with a PromiseResolve call that can't fail (#216)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Ficarra <[email protected]>
  • Loading branch information
bakkot and michaelficarra authored Aug 26, 2022
1 parent 2a42961 commit 96bc898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ <h1>%WrapForValidAsyncIteratorPrototype%.return ( )</h1>
1. Let _returnMethod_ be Completion(GetMethod(_iterator_, *"return"*)).
1. IfAbruptRejectPromise(_returnMethod_, _promiseCapability_).
1. If _returnMethod_ is *undefined*, then
1. Return ? PromiseResolve(%Promise%, CreateIterResultObject(*undefined*, *true*)).
1. Return ! PromiseResolve(%Promise%, CreateIterResultObject(*undefined*, *true*)).
1. Let _result_ be Completion(Call(_returnMethod_, _iterator_)).
1. IfAbruptRejectPromise(_result_, _promiseCapability_).
1. Return ? PromiseResolve(%Promise%, _result_).
Expand Down

0 comments on commit 96bc898

Please sign in to comment.