-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core: Report full stack trace for uncaught errors if possible (#1324)
Currently, when QUnit catches an uncaught error in its window.onerror handler, it reports it with a source of `fileName + ":" + lineNumber`. While it's not standard, most modern browsers include an errorObj argument to window.onerror, which can be used to get a more complete stacktrace ([source](https://blog.sentry.io/2016/01/04/client-javascript-reporting-window-onerror)). This change modifies the HTML reporter and the `QUnit.onError` method to do that.
- Loading branch information
1 parent
112d782
commit ed88074
Showing
4 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters