diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-03-29 23:39:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 06:39:32 +0800 |
commit | b5f4e1187f83768d00d8d3b105e4bc97efbac529 (patch) | |
tree | 3a0bd0391de58ee93bf3d399b7e9cd31e1fd9e16 | |
parent | 827bcec1860534442e82e9ccdfc2aca808fada5e (diff) | |
download | tracifyjs-b5f4e1187f83768d00d8d3b105e4bc97efbac529.tar.gz tracifyjs-b5f4e1187f83768d00d8d3b105e4bc97efbac529.zip |
handle single-field segments (#3757)
-rw-r--r-- | lib/sourcemap.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sourcemap.js b/lib/sourcemap.js index 3ca9f9a8..232cfabd 100644 --- a/lib/sourcemap.js +++ b/lib/sourcemap.js @@ -133,7 +133,7 @@ function SourceMap(options) { if (orig_col >= col) indices = segments[i]; if (orig_col <= col) break; } - if (!indices) return; + if (!indices || indices.length < 4) return; source = map.sources[indices[1]]; orig_line = indices[2]; orig_col = indices[3]; |