nashorn/test/script/basic/arrays.js.EXPECTED
author jlaskey
Fri, 21 Dec 2012 16:36:24 -0400
changeset 16147 e63b63819133
permissions -rw-r--r--
8005403: Open-source Nashorn Reviewed-by: attila, hannesw, lagergren, sundar Contributed-by: james.laskey@oracle.com, akhil.arora@oracle.com, andreas.woess@jku.at, attila.szegedi@oracle.com, hannes.wallnoefer@oracle.com, henry.jen@oracle.com, marcus.lagergren@oracle.com, pavel.semenov@oracle.com, pavel.stepanov@oracle.com, petr.hejl@oracle.com, petr.pisl@oracle.com, sundararajan.athijegannathan@oracle.com

3
isArray.length = 1
false
true
join.length = 1
javascript<->is<->great
every.length = 1
4,56,5 every even? = false
4,56,688 every even? = true
some.length = 1
4,56,5 some even? = true
3,5,17 some even? = false
forEach.length = 1
java,javascript,jython,jruby[0] is java
java,javascript,jython,jruby[1] is javascript
java,javascript,jython,jruby[2] is jython
java,javascript,jython,jruby[3] is jruby
JAVA,JAVASCRIPT,JYTHON,JRUBY
shifted is java, remaining is javascript,jython,jruby, length is 3
java,javascript
115
120
c++ java javascript objective c
hello world from javascript
indexOf.length = 1
indexOf('java') = 0
indexOf('javascript') = 1
indexOf('javascript', 3) = -1
indexOf('c++') = -1
[].indexOf('any') = -1
lastIndexOf.length = 1
lastIndexOf('java') = 4
lastIndexOf('jython') = 5
lastIndexOf('c') = 6
lastIndexOf('c++') = -1
[].lastIndexOf('any') = -1
concat.length = 1
foo,bar,x,y,34,sss,3,4,2
Array.length = 1
NaN,NaN,NaN
3
1
number
1

hello,world
,,,,
undefined
[object java.lang.Object]

33