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

It turns out that switching to WebIDL (#963) makes the answer to this question "yes". WebIDL doesn't allow an type that is not exposed to be constructible. From https://heycam.github.io/webidl/#NoInterfaceObject:

> If the [NoInterfaceObject] extended attribute is specified on an interface, then the [Constructor] extended attribute must not also be specified on that interface. A [NamedConstructor] extended attribute is fine, however.

-- 
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-500457945

Received on Monday, 10 June 2019 15:24:38 UTC