Re: [whatwg/streams] Add support for ReadableStream "owning" type (PR #1271)

Hmm, how does this interact with transferable streams?

Sure, we transfer in `controller.enqueue()` to push the chunk onto the stream's queue. But if the stream has been transferred, then:
* the cross-realm writable we create should also be of type `owning`
* the message we post through the internal `MessagePort` containing the chunk should have a proper transfer list

To support this, I think we'll have to store the transfer list alongside each chunk in the queue, so we can re-transfer the chunk later on. 🤔

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

Message ID: <whatwg/streams/pull/1271/c2102699812@github.com>

Received on Thursday, 9 May 2024 13:49:10 UTC