Skip to content

Commit 6fe229b

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

esmeta-ignore.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@
88
"GetViewByteLength",
99
"INTRINSICS.Atomics.notify",
1010
"Record[SourceTextModuleRecord].ExecuteModule",
11-
"TypedArrayLength",
12-
"YieldExpression[2,0].Evaluation"
11+
"TypedArrayLength"
1312
]

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)