Permalink
Browse files

simplify exception handling in RoxorVM::exec_recursive()

  • Loading branch information...
1 parent ff1e365 commit 320def32158acc1a70ab1af56f7e94f09a4633fc @Watson1978 Watson1978 committed Jun 25, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 vm.cpp
View
3 vm.cpp
@@ -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;

0 comments on commit 320def3

Please sign in to comment.