Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

fixes #172: avoid exposing spec fiction %AsyncFromSyncIteratorPrototype% #182

Merged
merged 1 commit into from
Jul 6, 2022
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
5 changes: 3 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -309,16 +309,17 @@ <h1>AsyncIterator.prototype</h1>
<h1>AsyncIterator.from ( _O_ )</h1>
<emu-alg>
1. Let _usingIterator_ be ? GetMethod(_O_, @@asyncIterator).
1. Let _iteratorRecord_ be *undefined*.
1. If _usingIterator_ is not *undefined*,
1. Let _iteratorRecord_ be ? GetIterator(_O_, ~async~, _usingIterator_).
1. Set _iteratorRecord_ to ? GetIterator(_O_, ~async~, _usingIterator_).
1. Let _hasInstance_ be ? OrdinaryHasInstance(%AsyncIterator.prototype%, _iteratorRecord_.[[Iterator]]).
1. If _hasInstance_ is *true*, then
1. Return _iteratorRecord_.[[Iterator]].
1. If _iteratorRecord_ is *undefined*,
1. Set _usingIterator_ to ? GetMethod(_O_, @@iterator).
1. If _usingIterator_ is not *undefined*,
1. Let _syncIteratorRecord_ be ? GetIterator(_O_, ~sync~, _usingIterator_).
1. Return ! CreateAsyncFromSyncIterator(_syncIteratorRecord_).
1. Set _iteratorRecord_ to ! CreateAsyncFromSyncIterator(_syncIteratorRecord_).
1. If _iteratorRecord_ is *undefined*, set _iteratorRecord_ to ? GetIteratorDirect(_O_).
1. Let _wrapper_ be ! ObjectCreate(%WrapForValidAsyncIteratorPrototype%, &laquo; [[AsyncIterated]] &raquo;).
1. Set _wrapper_.[[AsyncIterated]] to _iteratorRecord_.
Expand Down