Invoke ensure clauses before switching context from fibers; fix #3662

parent ed16535c
......@@ -1870,6 +1870,9 @@ RETRY_TRY_BLOCK:
if (mrb->c->ci == mrb->c->cibase && mrb->c->ci->pc) {
struct mrb_context *c = mrb->c;
while (eidx > 0) {
ecall(mrb, --eidx);
}
mrb->c = c->prev;
c->prev = NULL;
ci = mrb->c->ci;
......
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