Skip to content

Commit

Permalink
Normative: avoid mostly-redundant await in async yield*
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Jul 7, 2022
1 parent e61fbe1 commit 4978c21
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec.html
Expand Up @@ -45042,7 +45042,7 @@ <h1>
</dl>
<emu-alg>
1. Let _generatorKind_ be GetGeneratorKind().
1. If _generatorKind_ is ~async~, return ? AsyncGeneratorYield(_value_).
1. If _generatorKind_ is ~async~, return ? AsyncGeneratorYield(? Await(_value_)).
1. Otherwise, return ? GeneratorYield(CreateIterResultObject(_value_, *false*)).
</emu-alg>
</emu-clause>
Expand Down Expand Up @@ -45393,7 +45393,6 @@ <h1>
1. Assert: _genContext_ is the execution context of a generator.
1. Let _generator_ be the value of the Generator component of _genContext_.
1. Assert: GetGeneratorKind() is ~async~.
1. Set _value_ to ? Await(_value_).
1. Let _completion_ be NormalCompletion(_value_).
1. Assert: The execution context stack has at least two elements.
1. Let _previousContext_ be the second to top element of the execution context stack.
Expand Down

0 comments on commit 4978c21

Please sign in to comment.