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

This commit is contained in:
takkaw
2013-03-30 01:23:42 +09:00
parent 6818ec0b38
commit f36c133909
+1 -1
View File
@@ -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;