Skip to content

Commit

Permalink
fix: writable points
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Jul 8, 2024
1 parent f07320a commit a90a55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/location.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Location {

// index file
for (const char of String(file) + '\n') {
this.#indices[point.offset] = Object.freeze({ ...point })
this.#indices[point.offset] = { ...point }
this.#indices[`${point.line}:${point.column}`] = point.offset

// advance point
Expand Down

0 comments on commit a90a55c

Please sign in to comment.