Re: [whatwg/streams] Examine interaction of resizable array buffers with Streams (Issue #1248)

Should `byobReader.read(view)` preserve resizability in the returned view? That is: if you pass a resizable buffer to `read(view)`, should the resulting `{ done, value }` also have a resizable `value.buffer`? I would say it should.

Looking at our current [TransferArrayBuffer](https://streams.spec.whatwg.org/#transfer-array-buffer) helper, it looks like it won't have the necessary `[[ArrayBufferMaxByteLength]]` slot to make it resizable. So at the very least, we'll need to change that helper, so it works more like [the proposed `ArrayBuffer.prototype.transfer()` method](https://tc39.es/proposal-resizablearraybuffer/#sec-arraybuffer.prototype.transfer).

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

Message ID: <whatwg/streams/issues/1248/1322034075@github.com>

Received on Monday, 21 November 2022 13:03:22 UTC