Open micalevisk opened 1 week ago
It truncates the error cause lines
// app.js require('source-map-support').install(); throw new Error('test 123', { cause: new Error('foo') })
note that it's truncating the last lines
0.5.21
that's because the line bellow won't display the cause as it doesn't belongs to the stack trace:
https://github.com/evanw/node-source-map-support/blob/7b5b81eb14c9ee6c6537398262bf7dab8580621c/source-map-support.js#L499
It truncates the error cause lines
current behavior
expected behavior
note that it's truncating the last lines
version
0.5.21
that's because the line bellow won't display the cause as it doesn't belongs to the stack trace:
https://github.com/evanw/node-source-map-support/blob/7b5b81eb14c9ee6c6537398262bf7dab8580621c/source-map-support.js#L499