Skip to content

Commit

Permalink
Normative: avoid mostly-redundant await in async yield* (#2819)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot authored and ljharb committed Dec 4, 2022
1 parent ee74c9c commit 99b176b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec.html
Expand Up @@ -45130,7 +45130,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 @@ -45481,7 +45481,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 99b176b

Please sign in to comment.