mruby/mruby — pull request #256 by masamitsu-murase (2012-06-10 17:15:26+00:00)
Title: "slice" of shared string returns invalid result

"slice" of shared string returns invalid result.

For example,

a = "12345".slice(1, 3)
=> "234"
b = a.slice(0)
=> "1" (not "2")

I think that string.subseq should create new string based on 's->ptr' not on 's->aux.shared'.