Skip to content

Incremental read: Why only Uint8Array instead of BufferSource? #1724

@saschanaz

Description

@saschanaz

What is the issue with the Fetch Standard?

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

chunk steps, given chunk

  1. Let continueAlgorithm be null.
  2. If chunk is not a Uint8Array object, then set continueAlgorithm to this step: run processBodyError given a TypeError.

But maybe it can accept BufferSource instead?

(See also whatwg/streams#1299)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions