evanw / evanw/node-source-map-support

Crash while generating stack trace

Open
#131 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
223
PR merge metrics
No merged PRs in 30d

Description

While trying to translate a stack trace my project hits this case:

```
// Fix position in Node where some (internal) code is prepended.
// See https://github.com/evanw/node-source-map-support/issues/36
if (line === 1 && !isInBrowser() && !frame.isEval()) {
column -= 62;
}
```

Which doesn't apply to my code, because it doesn't has the header mentioned in that issue... It just has code on the first line, but it has less than 62 columns so it crashes later when the column is negative.

Apart from that, if translating the stack trace to typescript fails I think you should just print the original javascript stacktrace, not throw an error.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.