Reputation: 710
a question to an expert: The latest Java 8 provides Javascript engine Nashorn. Its known that with the magic of invokedynamic the javascript is compiled to JVM bytecode, unlike Mozilla Rhino, which just interprets it.
But what about JJS (javascript console). Is there any compilation on the fly? Or there is just interpretation?
Thanks!
Upvotes: 1
Views: 1906
Reputation: 3839
jjs
is just the name of a command-line tool, distributed with the JDK, that invokes Nashorn.
See the Java Platform Tools Reference for details.
Upvotes: 1