Skip to content

Commit

Permalink
[Truffle] - String#to_sym should create a symbol based on the string …
Browse files Browse the repository at this point in the history
…bytelist.
  • Loading branch information
lucasallan committed Feb 24, 2015
1 parent d3d4f85 commit f832028
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1713,7 +1713,7 @@ public ToSymNode(ToSymNode prev) {
public RubySymbol toSym(RubyString string) {
notDesignedForCompilation();

return getContext().newSymbol(string.toString());
return getContext().newSymbol(string.getByteList());
}
}

Expand Down

0 comments on commit f832028

Please sign in to comment.