Skip to content
EntityQ6966885· pop 8· linked from 145 articles

JavaScript engine

Source code

Nashorn engine is an open source implementation of the ECMAScript Edition 5.1 Language Specification. It also implements many new features introduced in ECMAScript 6 including template strings; let , const , and block scope; iterators and for..of loops; Map , Set , WeakMap , and WeakSet data types; symbols; and binary and octal literals. It is written in Java and runs on the Java Virtual Machine. Nashorn is free software, licensed under GPL v2 with the Classpath exception, just like the JDK. Making Nashorn standalone is still a work in progress. There is no standalone user's guides for it yet. The best current guides are Nashorn-related documents last published by Oracle with Java 14: (When browsing these guides, mentally substitute org.openjdk.nashorn in place of jdk.scripting.nashorn module name and jdk.nashorn package name.) Latest version of Nashorn is 15.7, available from Maven Central. You can check the change log to see what's new. will download the dependencies and build the JAR file. Other notable targets are test for running its own internal test suite, or test262-parallel for running the official ECMA-262 test suite for ECMAScript 5.1. You will need to execute ant get-test262 to download the tests into Nashorn's local test directory once. Nashorn is a project under the charter of the OpenJDK. The OpenJDK Bylaws govern our work. The Nashorn project membership can be found on the OpenJDK Census. We welcome patches and involvement from individual contributors or companies. If this is your first time contributing to an OpenJDK project, you will need to review the rules on becoming a Contributor, and sign the Oracle Contributor Agreement (OCA).

Excerpt from the source-code README · 4,100 chars · not written by Vinony

Available in 8 languages

via Wikidata sitelinks · CC0