RFR 8156665: ES6 for..of should work on Java Iterables and Java arrays

Hannes Wallnoefer hannes.wallnoefer at oracle.com
Tue May 10 16:58:05 UTC 2016


+1

This is nice because it treats Java arrays (and lists) as JavaScript 
arrays in for..of.

Another nice addition would be to treat java.util.Map and java.util.Set 
like ES6 Map and Set, respectively.

Hannes

Am 2016-05-10 um 16:56 schrieb Sundararajan Athijegannathan:
> Please review http://cr.openjdk.java.net/~sundar/8156665/webrev.00/ for
> https://bugs.openjdk.java.net/browse/JDK-8156665
>
> Thanks,
>
> -Sundar
>



More information about the nashorn-dev mailing list