Commit dfb47557 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1131 from takkaw/mrb_funcall_return_exc

Change to return the exception object when an exception occurred in mrb_funcall
parents 5f04e276 f36c1339
......@@ -305,7 +305,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