evanw / evanw/node-source-map-support

TypeError: Column must be greater than or equal to 0, got -62

オープン
#148 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
2.2k
フォーク
223
PR マージ指標
30日以内にマージされた PR はありません

説明

Stack trace :

```
TypeError: Column must be greater than or equal to 0, got -62
at SourceMapConsumer_findMapping [as _findMapping] (D:\REPOS\alm\node_modules\source-map-support\node_modules\source-map\lib\source-map\source-map-consumer.js:281:15)
at SourceMapConsumer_originalPositionFor [as originalPositionFor] (D:\REPOS\alm\node_modules\source-map-support\node_modules\source-map\lib\source-map\source-map-consumer.js:310:26)
at mapSourcePosition (D:\REPOS\alm\node_modules\source-map-support\source-map-support.js:188:42)
at wrapCallSite (D:\REPOS\alm\node_modules\source-map-support\source-map-support.js:327:20)
at D:\REPOS\alm\node_modules\source-map-support\source-map-support.js:362:26
at Array.map (native)
at Function.prepareStackTrace (D:\REPOS\alm\node_modules\source-map-support\source-map-support.js:361:24)
at process.emit (D:\REPOS\alm\node_modules\source-map-support\source-map-support.js:411:51)
at process._fatalException (node.js:237:26)
```

Tracked it down to https://github.com/evanw/node-source-map-support/blob/d8d1a8c14d35f15ac722a2d04b636cedf58f9fd3/source-map-support.js#L323-L325 moving it to `-62`.
# More

The code I am working on is available here : https://github.com/alm-tools/alm/pull/181. However might be easiest to just ask me to log whatever you want and I'll send it throught :rose:

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

source-map-support.js の 323–325 行目と、スタックトレースに示されている SourceMapConsumer の呼び出しから始めます。alm PR #181 のコンテキストを使うか、要求されたログを収集して、負の列のケースを再現します。スタックトレースのマッピングが負の列を SourceMapConsumer に渡さなくなり、報告された失敗が解決されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。