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

Commit 05b0c26

Browse files
support String parameters in Iterator.from and AsyncIterator.from (#250)
1 parent 5b37ecb commit 05b0c26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec.html

+2
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ <h1>Iterator.prototype</h1>
258258
<emu-clause id="sec-iterator.from">
259259
<h1>Iterator.from ( _O_ )</h1>
260260
<emu-alg>
261+
1. If _O_ is a String, set _O_ to ! ToObject(_O_).
261262
1. Let _iteratorRecord_ be ? GetIteratorFlattenable(_O_, ~sync~).
262263
1. Let _hasInstance_ be ? OrdinaryHasInstance(%Iterator%, _iteratorRecord_.[[Iterator]]).
263264
1. If _hasInstance_ is *true*, then
@@ -336,6 +337,7 @@ <h1>AsyncIterator.prototype</h1>
336337
<emu-clause id="sec-asynciterator.from">
337338
<h1>AsyncIterator.from ( _O_ )</h1>
338339
<emu-alg>
340+
1. If _O_ is a String, set _O_ to ! ToObject(_O_).
339341
1. Let _iteratorRecord_ be ? GetIteratorFlattenable(_O_, ~async~).
340342
1. Let _hasInstance_ be ? OrdinaryHasInstance(%AsyncIterator%, _iteratorRecord_.[[Iterator]]).
341343
1. If _hasInstance_ is *true*, then

0 commit comments

Comments
 (0)