Skip to content

ReadableStream desiredSize is not always an integer #44486

Description

@rotu

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/desiredSize

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

#Value
An integer. Note that this can be negative if the queue is over-full.

What did you expect to see?

This is wrong for two reasons:

  1. desiredSize can be null in the case of an errored stream.
  2. desiredSize can be a non-integer, in the case of a custom queuing strategy.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions