evanw / evanw/node-source-map-support
feature request: do not truncate the 'cause' value on errors
- Dominant language
- JavaScript
- Stars
- 2.2k
- Forks
- 223
- PR merge metrics
- No merged PRs in 30d
Description
It truncates the error cause lines
```js
// app.js
require('source-map-support').install();
throw new Error('test 123', { cause: new Error('foo') })
```
### current behavior

### expected behavior

note that it's truncating the last lines
#### version
- package: `0.5.21`
- nodejs: 22
---
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.