Skip to content
Permalink
Browse files
Use MRB_THROW instead of mrb_exc_raise.
  • Loading branch information
matz committed Jun 16, 2017
1 parent 6a66ce1 commit 9e6a3f6c959bad02093cbe527b4ae753271f463e
Showing 1 changed file with 2 additions and 6 deletions.
@@ -1527,13 +1527,9 @@ mrb_objspace_each_objects(mrb_state *mrb, mrb_each_object_callback *callback, vo
mrb->jmp = prev_jmp;
mrb->gc.iterating = iterating;
} MRB_CATCH(&c_jmp) {
mrb->jmp = prev_jmp;
mrb->gc.iterating = iterating;
if (mrb->exc) {
mrb_value exc = mrb_obj_value(mrb->exc);
mrb->exc = NULL;
mrb_exc_raise(mrb, exc);
}
mrb->jmp = prev_jmp;
MRB_THROW(prev_jmp);
} MRB_END_EXC(&c_jmp);
}
}

0 comments on commit 9e6a3f6

Please sign in to comment.