Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMLHttpRequest readyState not available as a static property #67

Open
guanlun opened this issue Jan 11, 2023 · 0 comments
Open

XMLHttpRequest readyState not available as a static property #67

guanlun opened this issue Jan 11, 2023 · 0 comments

Comments

@guanlun
Copy link

guanlun commented Jan 11, 2023

After window.XMLHttpRequest is replaced by the FakeXMLHttpRequest, accessing the readyState constants returns undefined (e.g. XMLHttpRequest.DONE => undefined).

It is available on the instances of XMLHttpRequest, or on FakeXMLHttpRequest, but any code that relies on XMLHttpRequest.DONE will be broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant