Skip to content

Commit

Permalink
Editorial: Add assertion that generatorKind is not non-generator (tc3…
Browse files Browse the repository at this point in the history
  • Loading branch information
d01c2 authored and ljharb committed Jan 23, 2025
1 parent f2eff8d commit ac5cd49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -24254,6 +24254,7 @@ <h1>Runtime Semantics: Evaluation</h1>
<emu-grammar>YieldExpression : `yield` `*` AssignmentExpression</emu-grammar>
<emu-alg>
1. Let _generatorKind_ be GetGeneratorKind().
1. Assert: _generatorKind_ is not ~non-generator~.
1. Let _exprRef_ be ? Evaluation of |AssignmentExpression|.
1. Let _value_ be ? GetValue(_exprRef_).
1. Let _iteratorRecord_ be ? GetIterator(_value_, _generatorKind_).
Expand Down

0 comments on commit ac5cd49

Please sign in to comment.