diff options
author | legendecas <legendecas@gmail.com> | 2022-07-28 03:09:30 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@google.com> | 2022-08-23 02:37:09 +0300 |
commit | 4249276783cf8bbb6aa98af41d15731c4fb6d195 (patch) | |
tree | bd237148b417d1de2b7804bf0997c53546fc60d9 /.eslintignore | |
parent | 374b77619bb44660fe2ae1f80597c42835cd96ea (diff) |
src,lib: print source map error source on demand
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>
Diffstat (limited to '.eslintignore')
-rw-r--r-- | .eslintignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintignore b/.eslintignore index 5941496e1a6..153ac6e24f7 100644 --- a/.eslintignore +++ b/.eslintignore @@ -6,6 +6,7 @@ test/message/esm_display_syntax_error.mjs tools/icu tools/lint-md/lint-md.mjs benchmark/tmp +benchmark/fixtures doc/**/*.js !doc/api_assets/*.js !.eslintrc.js |