Hi all,
(If you do not work with readable byte streams, you can ignore this.)We have recently submitted some CLs for updating readable byte streams in the Blink Implementation based on the latest spec changes in the Streams API standard. These updates fix various issues related to readable byte streams and improve standards compliance.
These changes include:
- respondWithNewView(newView) can now be called with a new view that is smaller than the BYOB request's view
- respondWithNewView() cannot be called with a non-empty view when the stream is closed
- respondWithNewView(newView) must now be called with a view whose buffer has the same length as that of the BYOB request
- enqueue(chunk) and respondWithNewView(newView) now checks that the given view's buffer is actually transferable
- enqueue() and respond() now checks that the BYOB request's view has not been transferred
- enqueue(), respond() and respondWithNewView() immediately invalidates the BYOB request
- Any pending BYOB reads are now resolved immediately on cancel()
- enqueue() now discards the BYOB request if it was auto-allocated
(For reference:
https://chromium-review.googlesource.com/c/chromium/src/+/3216570,
https://chromium-review.googlesource.com/c/chromium/src/+/3216778, and
https://chromium-review.googlesource.com/c/chromium/src/+/3213786)
Cheers,
Nidhi Jaju