Is this really the most direct way to get %AsyncIteratorPrototype%?
T.J. Crowder
tj.crowder at farsightsoftware.com
Tue Aug 14 19:04:04 UTC 2018
On Tue, Aug 14, 2018 at 7:42 PM, T.J. Crowder
<tj.crowder at farsightsoftware.com> 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%: http://jsfiddle.net/urv04Lp7/
Yeah, I think you have to go three levels along the prototype chain
from what those give you to get to `%AsyncIteratorPrototype%`:
http://jsfiddle.net/dbh9j7av/ 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