Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: fix some Iterator call completions #1310

Merged
merged 1 commit into from
Sep 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -20310,12 +20310,12 @@ <h1>Runtime Semantics: IteratorBindingInitialization</h1>
</emu-grammar>
<emu-alg>
1. Assert: _iteratorRecord_.[[Done]] is *false*.
1. Let _next_ be ? IteratorStep(_iteratorRecord_).
1. Let _next_ be IteratorStep(_iteratorRecord_).
1. If _next_ is an abrupt completion, set _iteratorRecord_.[[Done]] to *true*.
1. ReturnIfAbrupt(_next_).
1. If _next_ is *false*, set _iteratorRecord_.[[Done]] to *true*.
1. Else,
1. Let _v_ be ? IteratorValue(_next_).
1. Let _v_ be IteratorValue(_next_).
1. If _v_ is an abrupt completion, set _iteratorRecord_.[[Done]] to *true*.
1. ReturnIfAbrupt(_v_).
1. If _iteratorRecord_.[[Done]] is *true*, let _v_ be *undefined*.
Expand Down Expand Up @@ -34024,7 +34024,7 @@ <h1>Set ( [ _iterable_ ] )</h1>
1. Let _next_ be ? IteratorStep(_iteratorRecord_).
1. If _next_ is *false*, return _set_.
1. Let _nextValue_ be ? IteratorValue(_next_).
1. Let _status_ be Call(_adder_, _set_, &laquo; _nextValue_.[[Value]] &raquo;).
1. Let _status_ be Call(_adder_, _set_, &laquo; _nextValue_ &raquo;).
1. If _status_ is an abrupt completion, return ? IteratorClose(_iteratorRecord_, _status_).
</emu-alg>
</emu-clause>
Expand Down