Skip to content

Commit e287d33

Browse files
author
Nicolas Laurent
committed
don't always split String#to_sym
1 parent 4e5c02f commit e287d33

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/main/java/org/truffleruby/core/string/StringNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2487,7 +2487,7 @@ public boolean isStringSubclass(RubyString string) {
24872487

24882488
}
24892489

2490-
@CoreMethod(names = { "to_sym", "intern" }, split = Split.ALWAYS)
2490+
@CoreMethod(names = { "to_sym", "intern" })
24912491
@ImportStatic({ StringCachingGuards.class, StringGuards.class, StringOperations.class })
24922492
public abstract static class ToSymNode extends CoreMethodArrayArgumentsNode {
24932493

test/truffle/compiler/pe/core/string_pe.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,3 @@
7272

7373
example "14.to_s.length", 2
7474
counter example "14.to_s.getbyte(0)" # Doesn't work becuase the bytes are only populated on demand and so aren't constant
75-
76-
example "'TO_SYM'.to_sym", :TO_SYM

0 commit comments

Comments
 (0)