Skip to content

Commit

Permalink
propagate completions
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Jul 2, 2024
1 parent 12d6bc6 commit 1a7fe39
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 @@ -25,14 +25,14 @@ copyright: false
1. Else,
1. Let _completion_ be Completion(Yield(_innerValue_)).
1. If _completion_ is an abrupt completion, then
1. Perform ? IteratorClose(_iteratorRecord_, NormalCompletion(~unused~)).
1. Set _completion_ to Completion(IteratorClose(_iteratorRecord_, _completion_)).
1. Repeat, while _items_ is not empty,
1. Let _trailingIter_ be the first element of _items_.
1. Remove the first element from _items_.
1. If _trailingIter_ is an Object, then
1. Let _nextMethod_ be ? Get(_trailingIter_, "next").
1. Let _record_ be the Iterator Record { [[Iterator]]: _iter_, [[NextMethod]]: _nextMethod_, [[Done]]: true }.
1. Perform ? IteratorClose(_iteratorRecord_, NormalCompletion(~unused~)).
1. Set _completion_ to Completion(IteratorClose(_iteratorRecord_, _completion_)).
1. Return ? _completion_.
1. Return CreateIteratorFromClosure(_closure_, *"Iterator Helper"*, %IteratorHelperPrototype%, « »).
</emu-alg>
Expand Down

0 comments on commit 1a7fe39

Please sign in to comment.