Skip to content

Commit

Permalink
[ruby/prism] Set up location correctly for hashed locals
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton authored and matzbot committed Apr 5, 2024
1 parent 1953ead commit fbeb8f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prism/prism.c
Expand Up @@ -905,6 +905,7 @@ pm_locals_write(pm_locals_t *locals, pm_constant_id_t name, const uint8_t *start
if (local->name == PM_CONSTANT_ID_UNSET) {
*local = (pm_local_t) {
.name = name,
.location = { .start = start, .end = end },
.index = locals->size++,
.reads = reads,
.hash = initial_hash
Expand Down

0 comments on commit fbeb8f2

Please sign in to comment.