test/script/basic/JDK-8015349.js.EXPECTED

Fri, 21 Mar 2014 20:24:01 +0530

author
sundar
date
Fri, 21 Mar 2014 20:24:01 +0530
changeset 772
c1f528e1d2f2
parent 0
b1a7da25b547
permissions
-rw-r--r--

8037562: Nashorn: JSON.parse comes up with nonexistent entries if there are gaps between the keys
Reviewed-by: jlaskey, hannesw

aoqi@0 1 'abc'.lastIndexOf('a', 4) = 0
aoqi@0 2 'abc'.lastIndexOf('b', Infinity) = 1
aoqi@0 3 'abc'.lastIndexOf('a', -1) = 0
aoqi@0 4 'abc'.lastIndexOf('a', -Infinity) = 0
aoqi@0 5 'oracle'.lastIndexOf('u') = -1
aoqi@0 6 'hello'.lastIndexOf('l') = 3
aoqi@0 7 'hello'.lastIndexOf('l', 2) = 2
aoqi@0 8 'hello'.lastIndexOf('l', 3) = 3
aoqi@0 9 'hello'.lastIndexOf('l', 1) = -1

mercurial