Closed Nathan-Wall closed 10 years ago
It looks like places in the ES6 draft where a function takes an iteratable, it converts it to an iterator before passing to IteratorStep. Should similar steps be taken in Promise.all and Promise.race?
IteratorStep
Promise.all
Promise.race
For example, see Map, step 7:
a. Let iter be the result of GetIterator(iterable). b. ReturnIfAbrupt(iter).
Then iter is passed to IteratorStep.
iter
Good call, thanks!
It looks like places in the ES6 draft where a function takes an iteratable, it converts it to an iterator before passing to
IteratorStep
. Should similar steps be taken inPromise.all
andPromise.race
?For example, see Map, step 7:
Then
iter
is passed toIteratorStep
.