Need to evaluate ensure clauses at fiber termination.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-11-29 11:57:33 +09:00
parent 6bb5ad786c
commit d4fc980527
+3
View File
@@ -1896,6 +1896,9 @@ RETRY_TRY_BLOCK:
else {
struct mrb_context *c = mrb->c;
while (c->eidx > ci->epos) {
ecall_adjust();
}
if (c->fib) {
mrb_write_barrier(mrb, (struct RBasic*)c->fib);
}