Skip to content

Commit

Permalink
[PRISM] Don't generate leave insns for Ensure nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
eightbitraptor committed Nov 7, 2023
1 parent 8ef7f27 commit b7d5a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prism_compile.c
Expand Up @@ -3406,7 +3406,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,

free(index_lookup_table);

if (!scope_node->previous) {
if (!PM_NODE_TYPE_P(scope_node->ast_node, PM_ENSURE_NODE)) {
ADD_INSN(ret, &dummy_line_node, leave);
}
return;
Expand Down

0 comments on commit b7d5a63

Please sign in to comment.