compat-table icon indicating copy to clipboard operation
compat-table copied to clipboard

Add JDK9 Nashorn results

Open webbedspace opened this issue 10 years ago • 10 comments

Nashorn, according to some sources, supports let and const.

webbedspace avatar Feb 15 '15 03:02 webbedspace

But supports how... that is the question :)

let and const are the lands of chaos (I was even gonna write a post about it)

kangax avatar Feb 15 '15 13:02 kangax

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)

anba avatar Feb 15 '15 23:02 anba

@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.

dead-claudia avatar Jul 14 '15 06:07 dead-claudia

+1 @impinball

mattkime avatar Aug 29 '15 15:08 mattkime

+1 for Nashorn & Rhino

we have an Android project in which we embed rhino

AMorgaut avatar Jun 11 '16 15:06 AMorgaut

Rhino's compatibility table http://mozilla.github.io/rhino/compat/engines.html

chicoxyzzy avatar Sep 21 '16 08:09 chicoxyzzy

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.

zeitiger avatar Nov 16 '16 09:11 zeitiger

+1

mkurz avatar Feb 16 '17 10:02 mkurz

Not just JDK9 Nashorn, also JDK8.

nilskp avatar Oct 11 '17 16:10 nilskp

Would really like this so I can use it with Babel-ENV.

pixeldrew avatar Oct 18 '17 21:10 pixeldrew