Skip to content

Commit b7c31b6

Browse files
committed
Fix mistake in previous patch
1 parent 5c4af50 commit b7c31b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

acorn-loose/src/tokenize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ lp.resetTo = function(pos) {
9393
let skipped = this.input.slice(this.toks.pos, pos), match
9494
while (match = lineBreakG.exec(skipped)) {
9595
++this.toks.curLine
96-
this.toks.lineStart = match.index + match[0].length
96+
this.toks.lineStart = pos + match.index + match[0].length
9797
}
9898
} else {
9999
this.toks.curLine = 1

0 commit comments

Comments
 (0)