Is this really the most direct way to get %AsyncIteratorPrototype%?

T.J. Crowder tj.crowder at
Tue Aug 14 19:04:04 UTC 2018

On Tue, Aug 14, 2018 at 7:42 PM, T.J. Crowder
<tj.crowder at> wrote:
> I must be misreading those or something, but as far as I can
> tell, they both (I think they're basically the same thing)
> just give you a specific generator object, not
> %AsyncIteratorPrototype%:

Yeah, I think you have to go three levels along the prototype chain
from what those give you to get to `%AsyncIteratorPrototype%`: Which makes sense (proto on the gen
object is the async generator function's `.prototype`; its prototype
is `AsyncGeneratorFunction.prototype`, and its prototype is
`%AsynIteratorPrototype%`). But again, maybe I'm missing something.
(If not, I probably need to send a PR to tc39 / test262.)

-- T.J. Crowder

More information about the es-discuss mailing list