mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[PRISM] Mark constant path owning expressions as not popped
This commit is contained in:
parent
6bbb3e31fb
commit
ced6aff206
1 changed files with 1 additions and 1 deletions
|
@ -4276,7 +4276,7 @@ pm_compile_constant_path(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *co
|
|||
ADD_INSN1(body, &dummy_line_node, getconstant, name);
|
||||
}
|
||||
else {
|
||||
pm_compile_constant_path(iseq, cast->parent, prefix, body, popped, scope_node);
|
||||
pm_compile_constant_path(iseq, cast->parent, prefix, body, false, scope_node);
|
||||
ADD_INSN1(body, &dummy_line_node, putobject, Qfalse);
|
||||
ADD_INSN1(body, &dummy_line_node, getconstant, name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue