зеркало из https://github.com/github/ruby.git
Adjust sp for `case ... in a: 0 ... end`
This commit is contained in:
Родитель
691f10dd89
Коммит
5c40c88a3e
|
@ -6111,12 +6111,14 @@ iseq_compile_pattern_each(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *c
|
|||
|
||||
ADD_INSN(ret, line, pop);
|
||||
ADD_INSNL(ret, line, jump, matched);
|
||||
ADD_INSN(ret, line, putnil);
|
||||
|
||||
ADD_LABEL(ret, type_error);
|
||||
ADD_INSN1(ret, line, putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE));
|
||||
ADD_INSN1(ret, line, putobject, rb_eTypeError);
|
||||
ADD_INSN1(ret, line, putobject, rb_fstring_lit("deconstruct_keys must return Hash"));
|
||||
ADD_SEND(ret, line, id_core_raise, INT2FIX(2));
|
||||
ADD_INSN(ret, line, pop);
|
||||
|
||||
ADD_LABEL(ret, match_failed);
|
||||
ADD_INSN(ret, line, pop);
|
||||
|
|
Загрузка…
Ссылка в новой задаче