Skip to content

errors: annotate frames for prepareStackTrace()

When source-maps are enabled, overriding Error.prepareStackTrace() is again supported. Error.prepareStackTrace() will now be passed stack frames with the methods getOriginalFileName(), getOriginalLineNumber(), and getOriginalColumnNumber() which provide information parsed from source map.


I think this is a good solution to the exception @dougwilson raises in #29994 (closed), and provides tools like depd an option for taking advantage of source-map information.

fixes #29994 (closed)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading