Skip to content

Commit d271388

Browse files
committed
Fix usage of Rope#toString in throw_assertion_error
1 parent 9e2a3e4 commit d271388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/truffleruby/debug/TruffleDebugNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public abstract static class ThrowAssertionErrorNode extends CoreMethodArrayArgu
410410
@Specialization(guards = "strings.isRubyString(message)")
411411
protected Object throwAssertionError(Object message,
412412
@CachedLibrary(limit = "2") RubyStringLibrary strings) {
413-
throw new AssertionError(strings.getRope(message));
413+
throw new AssertionError(strings.getJavaString(message));
414414
}
415415

416416
}

0 commit comments

Comments
 (0)