JAVA9 new features -20-javascript engine upgrade: Nashorn

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.