node/benchmark/es
legendecas 803a7b2b23
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>
2022-07-28 08:09:30 +08:00
..
defaultparams-bench.js
destructuring-bench.js tools: enable no-unused-expressions lint rule 2020-12-07 20:33:45 +01:00
destructuring-object-bench.js
error-stack.js src,lib: print source map error source on demand 2022-07-28 08:09:30 +08:00
eval.js lib,src: add source map support for global eval 2022-07-11 21:44:04 +08:00
foreach-bench.js benchmark: enable no-empty ESLint rule 2022-02-05 12:58:27 +00:00
map-bench.js benchmark,test: use Object.hasOwn() where applicable 2021-12-20 04:03:58 +00:00
restparams-bench.js
spread-assign.js
spread-bench.js
string-concatenations.js
string-repeat.js