Skip to content

Commit

Permalink
Editorial: return ~unused~ from closures passed to GeneratorStart
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Sep 5, 2024
1 parent 2bcbb7d commit 627283a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ copyright: false
1. Let _iterCount_ be the number of elements in _iters_.
1. Let _openIters_ be a copy of _iters_.
1. Let _closure_ be a new Abstract Closure with no parameters that captures _iters_, _iterCount_, _openIters_, _mode_, _padding_, and _finishResults_, and performs the following steps when called:
1. If _iterCount_ = 0, return *undefined*.
1. If _iterCount_ = 0, return ~unused~.
1. Repeat,
1. Let _results_ be a new empty List.
1. Assert: _openIters_ is not empty.
Expand All @@ -147,7 +147,7 @@ copyright: false
1. If _result_ is ~done~, then
1. Remove _iters_[_i_] from _openIters_.
1. If _mode_ is *"shortest"*, then
1. Return ? IteratorCloseAll(_openIters_, NormalCompletion(*undefined*)).
1. Return ? IteratorCloseAll(_openIters_, NormalCompletion(~unused~)).
1. Else if _mode_ is *"strict"*, then
1. If _i_ ≠ 0, then
1. Return ? IteratorCloseAll(_openIters_, ThrowCompletion(a newly created *TypeError* object)).
Expand All @@ -162,10 +162,10 @@ copyright: false
1. Remove _iters_[_k_] from _openIters_.
1. Else,
1. Return ? IteratorCloseAll(_openIters_, ThrowCompletion(a newly created *TypeError* object)).
1. Return *undefined*.
1. Return ~unused~.
1. Else,
1. Assert: _mode_ is *"longest"*.
1. If _openIters_ is empty, return *undefined*.
1. If _openIters_ is empty, return ~unused~.
1. Set _iters_[_i_] to *null*.
1. Set _result_ to _padding_[_i_].
1. Append _result_ to _results_.
Expand Down

0 comments on commit 627283a

Please sign in to comment.