Re: [whatwg/streams] Why does the `read` method of `ReadableStreamBYOBReader` class, need to _transfer_ the buffer it is provided? (Issue #1348)

BlackAsLight left a comment (whatwg/streams#1348)

At the moment developers can expect that when creating a readable BYOB stream, that the underlying buffer is transferable. Meaning that they may choose to call .transfer on it for whatever reason. A change to allow SharedArrayBuffers to be passed up would break this assumption and break existing code that relied upon the mechanic.

How would one address this issue?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1348#issuecomment-3166503588
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/issues/1348/3166503588@github.com>

Received on Friday, 8 August 2025 04:11:00 UTC