зеркало из https://github.com/github/ruby.git
[PRISM] Mark constant path owning expressions as not popped
This commit is contained in:
Родитель
6bbb3e31fb
Коммит
ced6aff206
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче