File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
src/main/java/org/truffleruby/core/string
test/truffle/compiler/pe/core Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 172
172
import org .truffleruby .language .control .RaiseException ;
173
173
import org .truffleruby .language .dispatch .DispatchNode ;
174
174
import org .truffleruby .language .library .RubyLibrary ;
175
- import org .truffleruby .language .methods .Split ;
176
175
import org .truffleruby .language .objects .AllocateHelperNode ;
177
176
import org .truffleruby .language .objects .WriteObjectFieldNode ;
178
177
import org .truffleruby .language .yield .YieldNode ;
@@ -2487,7 +2486,7 @@ public boolean isStringSubclass(RubyString string) {
2487
2486
2488
2487
}
2489
2488
2490
- @ CoreMethod (names = { "to_sym" , "intern" }, split = Split . ALWAYS )
2489
+ @ CoreMethod (names = { "to_sym" , "intern" })
2491
2490
@ ImportStatic ({ StringCachingGuards .class , StringGuards .class , StringOperations .class })
2492
2491
public abstract static class ToSymNode extends CoreMethodArrayArgumentsNode {
2493
2492
Original file line number Diff line number Diff line change 72
72
73
73
example "14.to_s.length" , 2
74
74
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
You can’t perform that action at this time.
0 commit comments