- From: Kagami Sascha Rosylight <notifications@github.com>
- Date: Wed, 22 Nov 2023 02:03:17 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 22 November 2023 10:03:23 UTC
Here is an inconsistency since Fetch got byte stream support in 67d4cde9c62d2a99621719ad15f9885a9087f989:
```js
// One can enqueue Uint16Array with type: bytes
await new Response(new ReadableStream({
start(c) {
c.enqueue(new Uint16Array([0xD55C, 0xAE00]));
c.close();
},
type: "bytes"
})).blob()
// But this fails
await new Response(new ReadableStream({
start(c) {
c.enqueue(new Uint16Array([0xD55C, 0xAE00]));
c.close();
}
})).blob()
```
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1724#issuecomment-1822457644
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/fetch/issues/1724/1822457644@github.com>
Received on Wednesday, 22 November 2023 10:03:23 UTC