-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Throwing a non-Error object with a property called "stack" causes test to hang #10681
Comments
Seems likely, yeah. Anybody up for a PR fixing this? Anything thrown, ever, should be |
Hello @SimenB, I was trying to work on this issue. |
You can run |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
It seems that if you throw an object that is not an instance of Error, but includes a property named
stack
that is an object, the test will never complete.No error is reported on my machine, but the repl.it environment prints the error
TypeError: stack.replace is not a function
, though the test still hangs regardless.To Reproduce
add this to a test file:
Expected behavior
Test fails, but remainder of test suite continues
Link to repl or repo (highly encouraged)
https://repl.it/repls/GrossDarlingLocks
envinfo
The text was updated successfully, but these errors were encountered: