[whatwg/streams] Prohibit setting a strategy size for byte streams (#856)

Readable byte streams always measure chunks in bytes, so specifying a size()
function in the strategy never did anything. This is confusing, so throw an
exception when size() is specified along with type: 'bytes'.

Update editorial descriptions to match the new behaviour.

Tests are in https://github.com/w3c/web-platform-tests/pull/8279.

Fixes #792.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/856

-- Commit Summary --

  * Prohibit setting a strategy size for byte streams

-- File Changes --

    M index.bs (17)
    M reference-implementation/lib/readable-stream.js (3)
    M reference-implementation/web-platform-tests (2)

-- Patch Links --

https://github.com/whatwg/streams/pull/856.patch
https://github.com/whatwg/streams/pull/856.diff

-- 
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/pull/856

Received on Thursday, 16 November 2017 14:51:04 UTC