Need to evaluate ensure clauses at fiber termination.

parent 6bb5ad78
...@@ -1896,6 +1896,9 @@ RETRY_TRY_BLOCK: ...@@ -1896,6 +1896,9 @@ RETRY_TRY_BLOCK:
else { else {
struct mrb_context *c = mrb->c; struct mrb_context *c = mrb->c;
while (c->eidx > ci->epos) {
ecall_adjust();
}
if (c->fib) { if (c->fib) {
mrb_write_barrier(mrb, (struct RBasic*)c->fib); mrb_write_barrier(mrb, (struct RBasic*)c->fib);
} }
......
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