Adjust sp for case ... in *v end
/case ... in v1, v2 end
This commit is contained in:
parent
c866d6563f
commit
6c407b3668
Notes:
git
2020-08-16 18:39:42 +09:00
@ -5771,6 +5771,9 @@ iseq_compile_pattern_each(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *c
|
|||||||
}
|
}
|
||||||
ADD_INSNL(ret, line, jump, matched);
|
ADD_INSNL(ret, line, jump, matched);
|
||||||
ADD_INSN(ret, line, putnil);
|
ADD_INSN(ret, line, putnil);
|
||||||
|
if (use_rest_num) {
|
||||||
|
ADD_INSN(ret, line, putnil);
|
||||||
|
}
|
||||||
|
|
||||||
ADD_LABEL(ret, type_error);
|
ADD_LABEL(ret, type_error);
|
||||||
ADD_INSN1(ret, line, putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE));
|
ADD_INSN1(ret, line, putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user