Skip to content

Commit

Permalink
return ~empty~ from closures passed to GeneratorStart
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Sep 4, 2024
1 parent 8e26226 commit ee828d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ copyright: false
1. Let _buffer_ be a new empty List.
1. Repeat,
1. Let _value_ be ? IteratorStepValue(_iterated_).
1. If _value_ is ~done~, return *undefined*.
1. If _value_ is ~done~, return ~empty~.
1. Append _value_ to _buffer_.
1. If the number of elements in _buffer_ is ℝ(_chunkSize_), then
1. Let _completion_ be Completion(Yield(CreateArrayFromList(_buffer_))).
Expand All @@ -47,7 +47,7 @@ copyright: false
1. Let _buffer_ be a new empty List.
1. Repeat,
1. Let _value_ be ? IteratorStepValue(_iterated_).
1. If _value_ is ~done~, return *undefined*.
1. If _value_ is ~done~, return ~empty~.
1. Append _value_ to _buffer_.
1. If the number of elements in _buffer_ is ℝ(_windowSize_), then
1. Let _completion_ be Completion(Yield(CreateArrayFromList(_buffer_))).
Expand Down

0 comments on commit ee828d9

Please sign in to comment.