Skip to content

Commit

Permalink
ReturnCompletion(*undefined*) instead of NormalCompletion(~unused~)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Sep 20, 2024
1 parent c656bc0 commit f6598ab
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 NormalCompletion(~unused~).
1. Return ReturnCompletion(*undefined*).
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 NormalCompletion(~unused~).
1. If _value_ is ~done~, return ReturnCompletion(*undefined*).
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 f6598ab

Please sign in to comment.