From 03614ed9189b771a1c3414169e66faae1c1c1b74 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 16 Dec 2017 09:17:07 +0900 Subject: Need to clear exception handler on `return`; fix #3898 --- src/vm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vm.c b/src/vm.c index 464e9042d..c415089aa 100644 --- a/src/vm.c +++ b/src/vm.c @@ -2071,6 +2071,7 @@ RETRY_TRY_BLOCK: while (ci < mrb->c->ci) { cipop(mrb); } + ci[0].ridx = ci[-1].ridx; while (mrb->c->eidx > ci->epos) { ecall_adjust(); } -- cgit v1.2.3