There was an error while loading. Please reload this page.
1 parent 5c4af50 commit b7c31b6Copy full SHA for b7c31b6
1 file changed
acorn-loose/src/tokenize.js
@@ -93,7 +93,7 @@ lp.resetTo = function(pos) {
93
let skipped = this.input.slice(this.toks.pos, pos), match
94
while (match = lineBreakG.exec(skipped)) {
95
++this.toks.curLine
96
- this.toks.lineStart = match.index + match[0].length
+ this.toks.lineStart = pos + match.index + match[0].length
97
}
98
} else {
99
this.toks.curLine = 1
0 commit comments