Skip to content

Commit 025f971

Browse files
committed
ignore stray commas in source maps
1 parent 079c9a4 commit 025f971

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

code.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,12 @@
242242
continue;
243243
}
244244

245+
// Ignore stray commas
246+
if (c === 44 /* , */) {
247+
i++;
248+
continue;
249+
}
250+
245251
// Read the generated column
246252
const generatedColumnDelta = decodeVLQ();
247253
if (generatedColumnDelta < 0) needToSortGeneratedColumns = true;

0 commit comments

Comments
 (0)