Skip to content

Commit

Permalink
fix: error condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Mar 20, 2024
1 parent 0002dd7 commit 61bbc56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/source-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function getStringFromSerializeMappings(bytes: Uint8Array[], mappings: Array<Loc
const cap = mappings.length
for (let i = 0; i < cap; i++) {
const currentMaaping = mappings[i]
const nextMapping = i + 1 > cap ? null : mappings[i + 1]
const nextMapping = i + 1 >= cap ? null : mappings[i + 1]
if (cap === 1 || currentMaaping.lastGeneratedColumn === null) {
s += runes.substring(currentMaaping.generatedColumn)
continue
Expand Down

0 comments on commit 61bbc56

Please sign in to comment.