Skip to content

Commit

Permalink
fully match yield* by doing one last IteratorValue (#19)
Browse files Browse the repository at this point in the history
* fully match yield* by doing one last IteratorValue (15.5.5 step 7.a.v.1)

* simplify
  • Loading branch information
michaelficarra authored Dec 3, 2024
1 parent b1d267c commit 26bd708
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ copyright: false
1. Repeat, while _innerAlive_ is *true*,
1. Let _iteratorResult_ be ? IteratorStep(_iteratorRecord_).
1. If _iteratorResult_ is ~done~, then
1. Perform ? IteratorValue(_iteratorResult_).
1. Set _innerAlive_ to *false*.
1. Else,
1. Let _completion_ be Completion(GeneratorYield(_iteratorResult_)).
Expand Down

0 comments on commit 26bd708

Please sign in to comment.