Skip to content

Commit

Permalink
Editorial: Add assertion that generatorKind is not non-generator (#3379)
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 6fe229b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions esmeta-ignore.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
"GetViewByteLength",
"INTRINSICS.Atomics.notify",
"Record[SourceTextModuleRecord].ExecuteModule",
"TypedArrayLength",
"YieldExpression[2,0].Evaluation"
"TypedArrayLength"
]
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 6fe229b

Please sign in to comment.