Skip to content

Commit

Permalink
the AC passed to CreateIteratorFromClosure should return completions
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Sep 18, 2024
1 parent 32bd017 commit 69e14d2
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 @@ -24,7 +24,7 @@ copyright: false
1. If _value_ is ~done~, then
1. If _buffer_ is not empty, then
1. Perform Completion(Yield(CreateArrayFromList(_buffer_))).
1. Return ~unused~.
1. Return NormalCompletion(~unused~).
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 @@ -48,7 +48,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 ~unused~.
1. If _value_ is ~done~, return NormalCompletion(~unused~).
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 69e14d2

Please sign in to comment.