Skip to content

Commit d5af773

Browse files
authored
Merge pull request #3797 from ruby/block-exit-block-exits
Fully handle unreferencing a block exit
2 parents 1fc515c + 855d81a commit d5af773

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/prism.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12540,7 +12540,10 @@ pm_node_unreference_each(const pm_node_t *node, void *data) {
1254012540
);
1254112541
}
1254212542
parser->current_block_exits->size--;
12543-
return false;
12543+
12544+
/* Note returning true here because these nodes could have
12545+
* arguments that are themselves block exits. */
12546+
return true;
1254412547
}
1254512548

1254612549
index++;

0 commit comments

Comments
 (0)