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: do not check errors with instanceof. #209

Closed

Conversation

aslushnikov
Copy link
Contributor

It's probably safe enough to assume existance of the .stack property
on the Error object.

This should avoid the cross-VM type issues we see in Jest.

Fixes #208

It's probably safe enough to assume existance of the `.stack` property
on the Error object.

This should avoid the cross-VM type issues we see in Jest.

Fixes isaacs#208
@isaacs
Copy link
Owner

isaacs commented Feb 4, 2020

You know, those assertions are probably just not necessary anyway. I'd remove them.

@aslushnikov
Copy link
Contributor Author

I'd remove them.

sg, removed!

@isaacs isaacs closed this in aa50e02 Feb 9, 2020
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

Successfully merging this pull request may close these issues.

rimraf fails in certain node.js VM contexts
2 participants