Note: this question is far outdated and not useful.
The question was asked in 2011, and the JDK (as of the end of fall 2015) no longer wears Rhino; the question was about JDK 1.6, although JDK 1.7 was released in a couple of weeks.
Nashorn JDK 1.8 60 ES 5.1, , ES2015; Oracle. , JDK 9 Nashorn " " ES2015, .
.
Rhino JDK ( Sun) - 1.6R2. . , 1.7.
Rhino Mozilla . , , , .
edit — ECMAScript, Mozilla, . 1.6R2 , , ".forEach()".