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 benchmark: remove special test entries 2020-03-09 22:35:54 +01:00
destructuring-bench.js tools: enable no-unused-expressions lint rule 2020-12-07 20:33:45 +01:00
destructuring-object-bench.js benchmark: remove special test entries 2020-03-09 22:35:54 +01:00
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 benchmark: remove special test entries 2020-03-09 22:35:54 +01:00
spread-assign.js tools: update ESLint to 7.2.0 2020-06-13 16:44:03 -04:00
spread-bench.js tools: enable no-else-return lint rule 2020-05-16 06:42:16 +02:00
string-concatenations.js benchmark: remove special test entries 2020-03-09 22:35:54 +01:00
string-repeat.js benchmark: remove special test entries 2020-03-09 22:35:54 +01:00