Re: [whatwg/streams] Should ReadableStreamDefaultReader be exposed? (#586)

It's cunningly hidden here: https://streams.spec.whatwg.org/#globals

If I was King Of The World I would explicitly mention it alongside each class definition as well.

You can get it by doing something like

```javascript
const ReadableStreamDefaultReader = new ReadableStream().getReader().constructor;
```

If there's a compelling use case for subclassing it then certainly it could be exposed.

-- 
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/issues/586#issuecomment-257833790

Received on Wednesday, 2 November 2016 11:01:11 UTC