1. Official feature
236:parser API for Nashorn
292:implement Selected ECMAScript 6 Features in Nashorn
2. Instructions for use
The Nashorn project has been improved in JDK 9, which provides the lightweight Javascript runtime for Java. The Nashorn project follows the Netscape Rhino project to implement a high-performance but lightweight Javascript runtime in Java. The Nashorn project allows Java applications to embed Javascript. It provides a Javascript engine for Java in JDK 8.
JDK 9 contains an API for parsing Nashorn's ECMAScript syntax tree. This API enables the IDE and the server-side framework to parse the ECMAScript code without having to rely on the internal implementation class of the Nashorn project.
Still Silicon Valley interviewer Song Hongkang
Links: https://www.jianshu.com/p/5822d2f3fe2c
Source: Pinterest
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.
JAVA9 new features -20-javascript engine upgrade: Nashorn