Skip to content

Commit

Permalink
support String parameters in Iterator.from and AsyncIterator.from (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Dec 1, 2022
1 parent 5b37ecb commit 05b0c26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec.html
Expand Up @@ -258,6 +258,7 @@ <h1>Iterator.prototype</h1>
<emu-clause id="sec-iterator.from">
<h1>Iterator.from ( _O_ )</h1>
<emu-alg>
1. If _O_ is a String, set _O_ to ! ToObject(_O_).
1. Let _iteratorRecord_ be ? GetIteratorFlattenable(_O_, ~sync~).
1. Let _hasInstance_ be ? OrdinaryHasInstance(%Iterator%, _iteratorRecord_.[[Iterator]]).
1. If _hasInstance_ is *true*, then
Expand Down Expand Up @@ -336,6 +337,7 @@ <h1>AsyncIterator.prototype</h1>
<emu-clause id="sec-asynciterator.from">
<h1>AsyncIterator.from ( _O_ )</h1>
<emu-alg>
1. If _O_ is a String, set _O_ to ! ToObject(_O_).
1. Let _iteratorRecord_ be ? GetIteratorFlattenable(_O_, ~async~).
1. Let _hasInstance_ be ? OrdinaryHasInstance(%AsyncIterator%, _iteratorRecord_.[[Iterator]]).
1. If _hasInstance_ is *true*, then
Expand Down

0 comments on commit 05b0c26

Please sign in to comment.