Skip to content

Commit ac5cd49

Browse files
d01c2ljharb
authored andcommitted
Editorial: Add assertion that generatorKind is not non-generator (#3379)
1 parent f2eff8d commit ac5cd49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec.html

+1
Original file line numberDiff line numberDiff line change
@@ -24254,6 +24254,7 @@ <h1>Runtime Semantics: Evaluation</h1>
2425424254
<emu-grammar>YieldExpression : `yield` `*` AssignmentExpression</emu-grammar>
2425524255
<emu-alg>
2425624256
1. Let _generatorKind_ be GetGeneratorKind().
24257+
1. Assert: _generatorKind_ is not ~non-generator~.
2425724258
1. Let _exprRef_ be ? Evaluation of |AssignmentExpression|.
2425824259
1. Let _value_ be ? GetValue(_exprRef_).
2425924260
1. Let _iteratorRecord_ be ? GetIterator(_value_, _generatorKind_).

0 commit comments

Comments
 (0)