From aa3f73b3ea36d1985eb8a16594fc5fb354c17dff Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Tue, 30 Apr 2019 23:43:27 -0700 Subject: [PATCH] fix: initial column could be 0 on Node 10, after wrapper taken into account (#22) --- lib/source.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/source.js b/lib/source.js index 2e527dba..5ba5f79f 100644 --- a/lib/source.js +++ b/lib/source.js @@ -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) {