-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Runner.prototype.uncaught should not assume err object exists #1072
Comments
+1 |
Wow I had forgotten about this issue until you commented. 3 months and none of the devs have touched it -- even after I offered to help fix it? Hrm. |
|
It would fail on other primitives, and certainly not solves @witoldsz 's issue. Full solution could be like this: ( err !== function() { return this }.call(err) ) ? err : ( err.message || err ) |
I can submit a PR for this, but I'd like to confirm that I have the issue correct before I do.
Problem is that
err
is undefined.Changing to this:
fixes it well enough, but I wonder if mocha is expecting node to throw an error of a certain shape and that's no longer the case.
The text was updated successfully, but these errors were encountered: