Skip to content

Commit d5b8020

Browse files
author
Simon Holthausen
committed
line match bugfix
1 parent 996824d commit d5b8020

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mapping.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ class SourceMapper {
5050
let line = generated_position.line;
5151
let column = generated_position.column;
5252

53-
let line_match = this.decoded[generated_position.line];
53+
let line_match = this.decoded[line];
5454
while (line >= 0 && (!line_match || !line_match.length)) {
5555
line -= 1;
56-
line_match = this.decoded[generated_position];
56+
line_match = this.decoded[line];
5757
if (line_match && line_match.length) {
5858
return {
5959
line: line_match[line_match.length - 1][2],

0 commit comments

Comments
 (0)