Skip to content

errors: align source-map stacks with spec

Reformat stack traces when --enable-source-maps flag is set to format more likely to fit https://github.com/tc39/proposal-error-stacks


After discussion with @ljharb, who's working on the Error Stacks TC39 spec, we decided that it would be better to modify the behavior of --enable-source-maps, so that the user gets just the original call site, rather than both the original and transpiled call site.

The reasoning being, this gives us much of the value of the --enable-source-maps feature, without deviating from stack traces on other platforms.

This is a step towards removing the experimental flag from --enable-source-maps.

CC: @nodejs/tooling

Merge request reports

Loading