summaryrefslogtreecommitdiff
path: root/yjit_codegen.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-09-24 18:09:22 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:41 -0400
commit9dce2d51326c7db947507f32a9d33a0d22bbafbd (patch)
tree8c58d186faaca0297e3da9937bc98b61cc21e399 /yjit_codegen.c
parent1a5109cb5f8945f52f90ee420cde669f117b90c4 (diff)
Also do String#str
Diffstat (limited to 'yjit_codegen.c')
-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);
}