You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a result of that PR, the browser & doc reporters cannot handle showing function bodies when exceptions are thrown async, outside of the duration of the originating suite (after the suite has ended). They'll result in: Uncaught TypeError: Cannot read property 'toString' of undefined
Hi @danielstjules@boneskull! After test.fn.toString() to test.body change, when "before" throw Error mocha explode in mocha.js:5980 Uncaught TypeError: Cannot read property 'replace' of undefined
#2037
As a result of that PR, the browser & doc reporters cannot handle showing function bodies when exceptions are thrown async, outside of the duration of the originating suite (after the suite has ended). They'll result in:
Uncaught TypeError: Cannot read property 'toString' of undefined
The line in question:
Rather than revert #2037, I propose caching the function body strings, which should still be light.
The text was updated successfully, but these errors were encountered: