1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

reset the try_catch object after a TC block just in case.

This commit is contained in:
Charles Lowell 2010-05-31 10:07:16 +03:00
parent 6cf93bf1c3
commit ec85d5ea15

View file

@ -55,6 +55,7 @@ namespace {
kill_try_catch kill_on_return(wrapper);
VALUE rb_ref = Data_Wrap_Struct(TryCatchClass, mark_try_catch, free_try_catch, wrapper);
VALUE result = rb_yield(rb_ref);
tc.Reset();
return result;
} else {
return Qnil;