Commit 49133111 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

should not swallow exceptions from ensure clause

parent 76f7aecf
......@@ -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
......
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