Skip to content

Commit 69e14d2

Browse files
the AC passed to CreateIteratorFromClosure should return completions
1 parent 32bd017 commit 69e14d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec.emu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ copyright: false
2424
1. If _value_ is ~done~, then
2525
1. If _buffer_ is not empty, then
2626
1. Perform Completion(Yield(CreateArrayFromList(_buffer_))).
27-
1. Return ~unused~.
27+
1. Return NormalCompletion(~unused~).
2828
1. Append _value_ to _buffer_.
2929
1. If the number of elements in _buffer_ is ℝ(_chunkSize_), then
3030
1. Let _completion_ be Completion(Yield(CreateArrayFromList(_buffer_))).
@@ -48,7 +48,7 @@ copyright: false
4848
1. Let _buffer_ be a new empty List.
4949
1. Repeat,
5050
1. Let _value_ be ? IteratorStepValue(_iterated_).
51-
1. If _value_ is ~done~, return ~unused~.
51+
1. If _value_ is ~done~, return NormalCompletion(~unused~).
5252
1. Append _value_ to _buffer_.
5353
1. If the number of elements in _buffer_ is ℝ(_windowSize_), then
5454
1. Let _completion_ be Completion(Yield(CreateArrayFromList(_buffer_))).

0 commit comments

Comments
 (0)