[whatwg/streams] Fix missing check for autoAllocateChunkSize == 0 (#1098)

The reference implementation of [`SetUpReadableByteStreamControllerFromUnderlyingSource`](https://streams.spec.whatwg.org/commit-snapshots/660d259fa263e3c0646415a41b6e7b9a13ac4d04/#set-up-readable-byte-stream-controller-from-underlying-source) was missing step 9:
> 9. If _autoAllocateChunkSize_ is 0, then throw a `TypeError` exception.

This missing check was surfaced by a recently added WPT test (web-platform-tests/wpt@d7c07ed6cc486f3335c6a18a62ebae7517803237), but we did not yet roll WPT for this repository, so it went by undetected. This PR adds the missing check, and updates WPT to the latest version.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Fix missing check for autoAllocateChunkSize == 0
  * Roll WPT

-- File Changes --

    M reference-implementation/lib/abstract-ops/readable-streams.js (3)
    M reference-implementation/web-platform-tests (2)

-- Patch Links --

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

Received on Saturday, 26 December 2020 23:40:25 UTC