should not swallow exceptions from ensure clause

This commit is contained in:
Yukihiro Matsumoto
2012-06-15 16:20:25 +09:00
parent 76f7aecff3
commit 4913311155
+1 -1
View File
@@ -178,7 +178,7 @@ ecall(mrb_state *mrb, int i)
mrb->stack = mrb->stack + ci[-1].nregs;
exc = mrb->exc; mrb->exc = 0;
mrb_run(mrb, p, *self);
mrb->exc = exc;
if (!mrb->exc) mrb->exc = exc;
}
mrb_value