Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

XMLHttpRequest use readyState constants on target instead global interface #394

@hmdhk

Description

@hmdhk

Some libraries (e.g. offline.js) patch XMLHttpRequest, but they don't expose readyState constants (for example XMLHttpRequest.DONE is undefined which causes the macrotask to never get invoked).
Given that those constants are part of the standard only for the actual instance, we should use those constants on the target instead of global XMLHttpRequest

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