public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
827bcec
)
handle single-field segments (#3757)
author
Alex Lam S.L
<alexlamsl@gmail.com>
Sun, 29 Mar 2020 22:39:32 +0000
(23:39 +0100)
committer
GitHub
<noreply@github.com>
Sun, 29 Mar 2020 22:39:32 +0000
(06:39 +0800)
lib/sourcemap.js
patch
|
blob
|
history
diff --git
a/lib/sourcemap.js
b/lib/sourcemap.js
index
3ca9f9a
..
232cfab
100644
(file)
--- 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];