- From: Mattias Buelens <notifications@github.com>
- Date: Wed, 30 Jan 2019 13:42:30 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 30 January 2019 21:42:51 UTC
MattiasBuelens commented on this pull request.
> }
+const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype);
+const ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf({
Hmmm... What's the cleanest way of creating a function with `.name === 'return'`? The following does not work, because `return` is a keyword:
```
Object.defineProperty(ReadableStreamAsyncIteratorPrototype, 'return', {
value: function return(value) { ... },
enumerable: false,
writable: true,
configurable: true
});
```
--
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_r252449476
Received on Wednesday, 30 January 2019 21:42:51 UTC