[perl #126700] [JVM] calling index with negative start position on string does not return Nil

2015-11-22 Thread Christian Bartolomaeus via RT
After Rakudo commit negative start positions are disallowed: $ perl6 -e 'say index("xxy", "y", -1).perl' Failure.new(exception => X::OutOfRange.new(what => "Position in index", got => -1, range => "0..3", comment => Any), backtrace => Backtrace.new) Tested in S32-str/index.t and

[perl #126700] [JVM] calling .index with negative start position on string does not return Nil

2015-11-21 Thread via RT
# New Ticket Created by Christian Bartolomaeus # Please include the string: [perl #126700] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126700 > rakudo.jvm seems to ignore that $pos is negative in the following example: $