check upper callinfo to call ensure block; close #1579

parent 71011cdc
......@@ -1284,7 +1284,7 @@ mrb_context_run(mrb_state *mrb, struct RProc *proc, mrb_value self, unsigned int
mrb->jmp = prev_jmp;
mrb_longjmp(mrb);
}
while (eidx > ci->eidx) {
while (eidx > ci[-1].eidx) {
ecall(mrb, --eidx);
}
if (ci == mrb->c->cibase) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment