Skip to content

Commit 0fca35e

Browse files
committed
push_preserving_frame() should be outside the begin/ensure
1 parent 575e332 commit 0fca35e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/truffle/truffle/cext_ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def rb_define_method(mod, name, function, argc)
3030
end
3131

3232
# Using raw execute instead of #call here to avoid argument conversion
33+
Truffle::CExt.push_preserving_frame
3334
begin
34-
Truffle::CExt.push_preserving_frame
3535
if block
3636
Truffle::CExt.rb_tr_unwrap(Truffle::CExt.execute_with_mutex(function, *args, &block))
3737
else

0 commit comments

Comments
 (0)