зеркало из https://github.com/github/ruby.git
Adjust sp for `case ... in pat1 | pat2 ... end`
This commit is contained in:
Родитель
0759862458
Коммит
6bc0c6c18b
|
@ -6228,6 +6228,7 @@ iseq_compile_pattern_each(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *c
|
||||||
ADD_LABEL(ret, match_succeeded);
|
ADD_LABEL(ret, match_succeeded);
|
||||||
ADD_INSN(ret, line, pop);
|
ADD_INSN(ret, line, pop);
|
||||||
ADD_INSNL(ret, line, jump, matched);
|
ADD_INSNL(ret, line, jump, matched);
|
||||||
|
ADD_INSN(ret, line, putnil);
|
||||||
ADD_LABEL(ret, fin);
|
ADD_LABEL(ret, fin);
|
||||||
CHECK(iseq_compile_pattern_each(iseq, ret, node->nd_2nd, matched, unmatched, TRUE, deconstructed_pos));
|
CHECK(iseq_compile_pattern_each(iseq, ret, node->nd_2nd, matched, unmatched, TRUE, deconstructed_pos));
|
||||||
break;
|
break;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче