When I create err = new Error("test-error")
and console.log(err)
I can see the stack mapped to the original sources using the sourcemap in the developer console.
But when I read the err.stack
property I get a string which is not source-mapped. It shows files and line numbers from generated files.
How do I get the source-mapped stack from the err
object?