hg: nashorn/jdk8/nashorn: 8015349: "abc".lastIndexOf("a", -1) should evaluate to 0 and not -1

sundararajan.athijegannathan at oracle.com sundararajan.athijegannathan at oracle.com
Wed May 29 08:57:48 PDT 2013


Changeset: a2e2797392b3
Author:    sundar
Date:      2013-05-29 21:27 +0530
URL:       http://hg.openjdk.java.net/nashorn/jdk8/nashorn/rev/a2e2797392b3

8015349: "abc".lastIndexOf("a",-1) should evaluate to 0 and not -1
Reviewed-by: lagergren, attila, jlaskey

! src/jdk/nashorn/internal/objects/NativeString.java
+ test/script/basic/JDK-8015349.js
+ test/script/basic/JDK-8015349.js.EXPECTED



More information about the nashorn-dev mailing list