Commit f36c1339 authored by takkaw's avatar takkaw

Change to return the exception object when an exception occurred in mrb_funcall

parent 6818ec0b
......@@ -302,7 +302,7 @@ mrb_funcall_with_block(mrb_state *mrb, mrb_value self, mrb_sym mid, int argc, mr
cipop(mrb);
}
mrb->jmp = 0;
val = mrb_nil_value();
val = mrb_obj_value(mrb->exc);
}
else {
mrb->jmp = &c_jmp;
......
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