🐛 Bug: Browser doesn't include call stack for global uncaught errors #5106
Labels
area: browser
browser-specific
status: accepting prs
Mocha can use your help with this one!
type: bug
a defect, confirmed by a maintainer
Bug Report Checklist
faq
label, but none matched my issue.Expected
When an uncaught error occurs during a test in browsers, you'd expect to see the call stack. That's useful.
Actual
Mocha's browser error handling code was written before browsers gave nice stacks (eb58761).
Minimal, Reproducible Example
Using a minimal browser setup such as in mochajs/mocha-examples#72:
Versions
Mocha: 10.3.0
Additional Info
This was filed long ago in #2167, then a fix proposed in #3952. Since #2167 is quite old, re-filing to be more current.
The text was updated successfully, but these errors were encountered: