Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] Dup String#b.
  • Loading branch information
chrisseaton committed Dec 21, 2014
1 parent 766148d commit 0fe4091
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -277,7 +277,7 @@ public BNode(BNode prev) {

@Specialization
public RubyString b(RubyString string) {
final ByteList bytes = string.getBytes();
final ByteList bytes = string.getBytes().dup();
bytes.setEncoding(ASCIIEncoding.INSTANCE);
return getContext().makeString(bytes);
}
Expand Down

0 comments on commit 0fe4091

Please sign in to comment.