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:
parent
6cf93bf1c3
commit
ec85d5ea15
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue