Skip to content

Commit

Permalink
simplify exception handling in RoxorVM::exec_recursive()
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jun 25, 2012
1 parent ff1e365 commit 320def3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vm.cpp
Expand Up @@ -4769,9 +4769,8 @@ RoxorVM::exec_recursive(VALUE (*func) (VALUE, VALUE, int), VALUE obj,
throw;
}
catch (...) {
RoxorSpecialException *exc = get_special_exc();
remove_recursive_object(obj);
throw exc;
throw;
}
remove_recursive_object(obj);
return ret;
Expand Down

0 comments on commit 320def3

Please sign in to comment.