[whatwg/streams] "If stream.[[readableStreamController]] is not u..." (#543)

https://streams.spec.whatwg.org/#rs-default-controller-constructor

> If stream\.\[\[readableStreamController\]\] is not undefined, throw a TypeError exception\.

I believe this should be an assert, ie. Assert: _stream_\.\[\[readableStreamController\]\] is **undefined**\.

My reasons are

1. ReadableStreamDefaultController is not exported, so it can only be constructed from within the spec.
2. The algorithm in the ReadableStream constructor which constructs it does not permit \[\[readableStreamController\]\] to be defined at this point.

The same applies to ReadableByteStreamController and WritableStreamDefaultController.

-- 
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/543

Received on Tuesday, 18 October 2016 09:55:08 UTC