Skip to content

Commit 265bc6e

Browse files
committed
Add boundary for handleBadErrorType(), as it uses getCurrentContext()
1 parent b222da2 commit 265bc6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/truffleruby/interop/TranslateInteropRubyExceptionNode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
package org.truffleruby.interop;
1111

12+
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
1213
import org.truffleruby.RubyContext;
1314
import org.truffleruby.RubyLanguage;
1415
import org.truffleruby.core.cast.IntegerCastNode;
@@ -159,6 +160,7 @@ protected AssertionError fallback(RaiseException exception, long index, String i
159160
throw exception;
160161
}
161162

163+
@TruffleBoundary
162164
protected AssertionError handleBadErrorType(InteropException e, RaiseException rubyException) {
163165
RubyContext context = RubyLanguage.getCurrentContext();
164166
final RubyException exception = context.getCoreExceptions().runtimeError(

0 commit comments

Comments
 (0)