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

Fix AjaxTimeoutErrorImpl to extend AjaxError #5226

Merged
merged 2 commits into from
Jan 20, 2020

Conversation

Huulivoide
Copy link
Contributor

Fixed AjaxTimeoutError not inheriting AjaxError's and Eerror's
prototype. While the TypeScript typings were correct, actual code
using instanceof operator would fail.

The following statements are now true:

  • AjaxError instanceof Error === true
  • AjaxTimeoutError instanceof Error === true
  • AjaxTimeoutError instanceof AjaxError === true

Fixed AjaxTimeoutError not inheriting AjaxError's and Eerror's
prototype. While the TypeScript typings were correct, actual code
using instanceof operator would fail.

The following statements are now true:
* AjaxError instanceof Error === true
* AjaxTimeoutError instanceof Error === true
* AjaxTimeoutError instanceof AjaxError === true
@benlesh benlesh merged commit a8da8dc into ReactiveX:master Jan 20, 2020
martinsik pushed a commit to martinsik/rxjs that referenced this pull request Feb 15, 2020
* fix ajax: AjaxTimeoutError should extend AjaxError

Fixed AjaxTimeoutError not inheriting AjaxError's and Eerror's
prototype. While the TypeScript typings were correct, actual code
using instanceof operator would fail.

The following statements are now true:
* AjaxError instanceof Error === true
* AjaxTimeoutError instanceof Error === true
* AjaxTimeoutError instanceof AjaxError === true

* docs: CONTRIBUTING.ms was referencing Jasmine instead of Chai.
@lock lock bot locked as resolved and limited conversation to collaborators Feb 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants