Skip to content

Commit

Permalink
fix: initial column could be 0 on Node 10, after wrapper taken into a…
Browse files Browse the repository at this point in the history
…ccount (#22)
  • Loading branch information
bcoe authored May 1, 2019
1 parent 4288112 commit aa3f73b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function originalEndPositionFor (sourceMap, line, column) {
const beforeEndMapping = originalPositionTryBoth(
sourceMap,
line,
column - 1
Math.max(column - 1, 1)
)

if (beforeEndMapping.source === null) {
Expand Down

0 comments on commit aa3f73b

Please sign in to comment.