Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Add explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
haltman-at committed Apr 12, 2023
1 parent b0580ab commit 0ee863d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/source-map-utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ var SourceMapUtils = {
}

for (let i = 0; i < Buffer.from(character).length; i++) {
//because our character offsets here are in bytes, we need to
//pad out the line/column map as per the UTF-8 length of the
//characters so we're mapping *bytes* to line/columns
mapping.push(loc);
}
column += 1;
Expand Down

0 comments on commit 0ee863d

Please sign in to comment.