mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
803a7b2b23
The source context is not prepended to the value of the `stack` property when the source map is not enabled. Rather than prepending the error source context to the value of the `stack` property unconditionally, this patch aligns the behavior and only prints the source context when the error is not handled by userland (e.g. fatal errors). Also, this patch fixes that when source-map support is enabled, the error source context is not pointing to where the error was thrown. PR-URL: https://github.com/nodejs/node/pull/43875 Fixes: https://github.com/nodejs/node/issues/43186 Fixes: https://github.com/nodejs/node/issues/41541 Reviewed-By: Ben Coe <bencoe@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
11 lines
224 B
Plaintext
11 lines
224 B
Plaintext
*uglify-throw-original.js:5
|
|
throw Error('goodbye');
|
|
^
|
|
|
|
Error: goodbye
|
|
at Hello *uglify-throw-original.js:5:9*
|
|
at *uglify-throw-original.js:9:3*
|
|
at process.processImmediate (node:internal/timers:*)
|
|
|
|
Node.js *
|