tc39/proposal-async-iteration

wrong argument in Runtime Semantics: ForIn/OfBodyEvaluation

arai-a opened this issue · 0 comments

https://tc39.github.io/proposal-async-iteration/#sec-runtime-semantics-forin-div-ofbodyevaluation-lhs-stmt-iterator-lhskind-labelset

In step 6

a. Let nextResult be ? IteratorNext(iterator).
b. If iteratorKind is async, then set nextResult to ? Await(nextResult).
c. Let done be ? IteratorComplete(iterator).

the argument of IteratorComplete should be nextResult.