summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yjit_codegen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c
index c284fc2551..5bf0905541 100644
--- a/yjit_codegen.c
+++ b/yjit_codegen.c
@@ -4505,5 +4505,7 @@ yjit_init_codegen(void)
yjit_reg_method(rb_cSymbol, "==", jit_rb_obj_equal);
yjit_reg_method(rb_cSymbol, "===", jit_rb_obj_equal);
+ // rb_str_to_s() methods in string.c
yjit_reg_method(rb_cString, "to_s", jit_rb_str_to_s);
+ yjit_reg_method(rb_cString, "to_str", jit_rb_str_to_s);
}