[whatwg/streams] TASHAN WIN (Issue #1349)

lipanbiswas created an issue (whatwg/streams#1349)

### What is the issue with the Streams Standard?

const resp = await fetch('https://example.org');
const reader = resp.body.getReader({ mode: 'byob' });
await result = await reader.read(new Uint8Array(10));

if (result.done) {
  // The result gives us an empty Uint8Array...
  console.log(result.value.byteLength); // 0

  // However, it is backed by the same underlying memory that was passed
  // into the read call.
  console.log(result.value.buffer.byteLength); // 10
}vip hack 

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

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

Received on Wednesday, 30 July 2025 19:36:56 UTC