compat-table
compat-table copied to clipboard
Add JDK9 Nashorn results
Nashorn, according to some sources, supports let and const.
But supports how... that is the question :)
let and const are the lands of chaos (I was even gonna write a post about it)
Test scripts + results using nashorn-jdk9 tip: https://gist.github.com/anba/24f2b158aa7e58930bf2
TLDR; the let
and const
tests pass except for:
let - for-loop iteration scope
let - for-loop iteration scope (strict mode)
@kangax This and Rhino (which is even more popular) both need added. Rhino is frequently embedded into Java applications, especially Android ones, where Nashorn doesn't exist. They both should be added to the server-side engines.
+1 @impinball
+1 for Nashorn & Rhino
we have an Android project in which we embed rhino
Rhino's compatibility table http://mozilla.github.io/rhino/compat/engines.html
It would be quite helpful see which features are available. The documentation of Oracle is not really helpful, there is only the claim that Nashorn/Java8 is ECMAScript 5.1 complaint. But there is also a ES6 flag and complete not idea what will that enable? In the roadmap for Java9 I found the target to to be complaint to ECMAScript 2015.
+1
Not just JDK9 Nashorn, also JDK8.
Would really like this so I can use it with Babel-ENV.