Skip to content

Commit 41d8d85

Browse files
change windows option to "only full" and "allow partial"
1 parent 0027a97 commit 41d8d85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec.emu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ copyright: false
4949
1. If _windowSize_ is not an integral Number in the inclusive interval from *1*<sub>𝔽</sub> to 𝔽(2<sup>32</sup> - 1), then
5050
1. Let _error_ be ThrowCompletion(a newly created *RangeError* object).
5151
1. Return ? IteratorClose(_iterated_, _error_).
52-
1. If _undersized_ is *undefined*, set _undersized_ to *"discard"*.
53-
1. If _undersized_ is neither *"discard"* nor *"truncate"*, then
52+
1. If _undersized_ is *undefined*, set _undersized_ to *"only full"*.
53+
1. If _undersized_ is neither *"only full"* nor *"allow partial"*, then
5454
1. Let _error_ be ThrowCompletion(a newly created *TypeError* object).
5555
1. Return ? IteratorClose(_iterated_, _error_).
5656
1. Set _iterated_ to ? GetIteratorDirect(_O_).
@@ -59,7 +59,7 @@ copyright: false
5959
1. Repeat,
6060
1. Let _value_ be ? IteratorStepValue(_iterated_).
6161
1. If _value_ is ~done~, then
62-
1. If _undersized_ is *"truncate"*, _buffer_ is not empty, and the number of elements in _buffer_ &lt; ℝ(_windowSize_), then
62+
1. If _undersized_ is *"allow partial"*, _buffer_ is not empty, and the number of elements in _buffer_ &lt; ℝ(_windowSize_), then
6363
1. Perform Completion(Yield(CreateArrayFromList(_buffer_))).
6464
1. Return ReturnCompletion(*undefined*).
6565
1. If the number of elements in _buffer_ is ℝ(_windowSize_), then

0 commit comments

Comments
 (0)