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

Only treat native errors as errors #3229

Merged
merged 3 commits into from
Jul 31, 2023
Merged

Only treat native errors as errors #3229

merged 3 commits into from
Jul 31, 2023

Conversation

novemberborn
Copy link
Member

  • Remove is-error dependency
  • Document edge case where error instanceof Error can be true, yet AVA does not recognize error as an error

See also #2911 for an earlier attempt.

Includes a workaround for nodejs/node#48716 so that we can treat worker errors as such.

They're not native due to nodejs/node#48716, but we want to treat them as such anyway.
* Remove is-error dependency
* Document edge case where `error instanceof Error` can be true, yet AVA does not recognize `error` as an error

See also #2911 for an earlier attempt.
@novemberborn
Copy link
Member Author

@drazisil I figured out the problem with #2911!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking requires a SemVer major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant