Skip to content

Commit 5347d68

Browse files
committed
[Truffle] Restored alias from Kernel#inspect to Kernel#to_s.
This is done solely for bootstrapping purposes. We override the method with a correct implementation in Ruby.
1 parent e0a9a31 commit 5347d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

truffle/src/main/java/org/jruby/truffle/nodes/core/KernelNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2231,7 +2231,7 @@ public String toHexString(RubyBignum value) {
22312231

22322232
}
22332233

2234-
@CoreMethod(names = "to_s")
2234+
@CoreMethod(names = { "to_s", "inspect" })
22352235
public abstract static class ToSNode extends CoreMethodNode {
22362236

22372237
@Child private ClassNode classNode;

0 commit comments

Comments
 (0)