Re: [whatwg/streams] Switching to Web IDL (#963)

One more difference:

- WebIDL doesn't permit a type to have a constructor while not being exposed on the global object. This affects ReadableStreamDefaultReader and WritableStreamDefaultWriter, which are constructible but not exposed.

Possible solutions:

1. Change WebIDL to make the combination of `[Constructor]` and `[NoInterfaceObject]` valid.
2. Stop ReadableStreamDefaultReader and WritableStreamDefaultWriter from being constructible.
3. Expose them on the global object.

I prefer option 2., but I suspect I am in a minority.

-- 
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/963#issuecomment-459176420

Received on Thursday, 31 January 2019 01:17:39 UTC