Skip to content

Commit a0a25ed

Browse files
committed
Switch to primitive for setting exception state.
1 parent ccc6ae7 commit a0a25ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/truffle/truffle/cext_ruby.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ def rb_define_method(mod, name, function, argc)
3232
end
3333

3434
exc = $!
35-
Truffle::Type.set_last_exception(nil)
35+
Primitive.thread_set_exception(nil)
3636
# Using raw execute instead of #call here to avoid argument conversion
3737

3838
# We must set block argument if given here so that the
3939
# `rb_block_*` functions will be able to find it by walking the
4040
# stack.
4141
res = Primitive.cext_unwrap(Primitive.call_with_c_mutex_and_frame(function, args, block))
42-
Truffle::Type.set_last_exception(exc)
42+
Primitive.thread_set_exception(exc)
4343
res
4444
end
4545

0 commit comments

Comments
 (0)