Re: [whatwg/streams] Add @@asyncIterator to ReadableStream (#980)

domenic commented on this pull request.



>  }
 
+const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype);
+const ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf({

It's simplest to just use object literals and then do `Object.defineProperty(RSAIP, 'return', { enumerable: false })`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/980#discussion_r252451011

Received on Wednesday, 30 January 2019 21:47:24 UTC