Commit 3144fea
error-reporting: Fix
* error-reporting: Fix `report()` silently failing
If the `report()` method is called with a number, an associated
error never appears in the error reporting console, and no log
message is printed to the user to indicate why the error has not
appeared.
* Fix linting errors
* Add the new `build-stack-trace.js` file
* Add more system tests for `errors.report()`
* Rename errorHandlerRouter to populateErrorMessage
* Rename error-router to populate-error-message
* Reorganize the populate-error-message tests
* Update buildStackTrace to use captureStackTrace
The `Error.captureStackTrace` method is now used in the
`buildStackTrace` function to create a stack trace.
* Simplify the system tests
The code for verifiying that stack traces don't contain
error-reporting specific frames has been consolidated into a
single location.
* Consolidate code in populate-error-message.js
* Make the `buildStackTrace` more robust
In particular, the `buildStackTrace` was updated to ensure that
no error-reporting specific frames are included in the built
stack trace. In addition, the system-tests have been updated to
ensure error-reporting related frames, and only those frames, are
removed from the built stack trace.report() silently failing (#2363)1 parent 4029a11 commit 3144fea
File tree
28 files changed
+598
-1094
lines changed- src
- classes
- error-extractors
- error-handlers
- interfaces
- system-test
- test/unit
- classes
- error-extractors
- error-handlers
28 files changed
+598
-1094
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments