RESOLVED INVALID 161687
[Streams API] getReader behaviour with empty mode
https://bugs.webkit.org/show_bug.cgi?id=161687
Summary [Streams API] getReader behaviour with empty mode
Romain Bellessort
Reported 2016-09-07 07:31:04 PDT
According to latest spec and tests, getReader({ mode: '' }) throws a RangeError. As mentioned with regard to bug 160508 [1], it should be checked whether this is actually the intended behaviour or a spec error. [1] https://bugs.webkit.org/show_bug.cgi?id=160508#c14
Attachments
Romain Bellessort
Comment 1 2016-09-07 07:34:10 PDT
I created an issue on GH related to this bug [1]. Domenic confirmed that this is the intended behaviour. Only { mode: undefined } or no parameter should return a ReadableStreamDefaultReader. This corresponds to the current WK implementation, so there is nothing to change here. [1] https://github.com/whatwg/streams/issues/517
Note You need to log in before you can comment on or make changes to this bug.