[whatwg/streams] Editorial: refactor autoAllocateChunkSize checking (#1092)

This throws the exception only from
SetUpReadableByteStreamControllerFromUnderlyingSource, i.e. from parts
of the spec reached by arbitrary web-developer provided values, instead
of from SetUpReadableByteStreamController, which is deeper in.

Then, we can assert that by the time the value reaches
SetUpReadableByteStreamController, it's positive. This makes any other
specs doing the wrong thing into assertion failures, reserving thrown
exceptions for web-developer provided zeros.

/cc @nidhijaju
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Editorial: refactor autoAllocateChunkSize checking

-- File Changes --

    M index.bs (4)

-- Patch Links --

https://github.com/whatwg/streams/pull/1092.patch
https://github.com/whatwg/streams/pull/1092.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/1092

Received on Tuesday, 1 December 2020 16:53:37 UTC