[whatwg/fetch] Incremental read: Why only Uint8Array instead of BufferSource? (Issue #1724)

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

https://fetch.spec.whatwg.org/#incrementally-read-loop

>[chunk steps](https://streams.spec.whatwg.org/#read-request-chunk-steps), given chunk
>  1. Let continueAlgorithm be null.
>  2. If chunk is not a [Uint8Array](https://webidl.spec.whatwg.org/#idl-Uint8Array) object, then set continueAlgorithm to this step: run processBodyError given a [TypeError](https://webidl.spec.whatwg.org/#exceptiondef-typeerror).

But maybe it can accept BufferSource instead?

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

Message ID: <whatwg/fetch/issues/1724@github.com>

Received on Thursday, 16 November 2023 14:09:09 UTC