4 ms·
Nashorn (Oracle's, now discontinued ECMAScript implementation for the JVM and Rhino's successor) can be used for Shell scripting, too, when started with the `-s
by zmix 5y ago
Nashorn (Oracle's, now discontinued ECMAScript implementation for the JVM and Rhino's successor) can be used for Shell scripting, too, when started with the `-scripting` parameter. Here is a little overview[1]. I think, GraalVM's new ECMAScript implementation is compatible with both NodeJS and Nashorn, including the scripting features.
[1]: https://docs.oracle.com/javase/8/docs/technotes/guides/scripting/nashorn/shell.html https://docs.oracle.com/javase/8/docs/technotes/guides/scrip...
- brabel 5y agoGraalVM's JS engine[1] is an implementation of ECMAScript 2021 and as such, it's a drop-in replacements for Node.js and npm. It also supports some Nashorn features for interop with Java, but for many things to work, you need to enable it explicitly, especially the compatibility mode flag (`-Dpolyglot.js.nashorn-compat=true`). See https://github.com/oracle/graaljs/blob/master/docs/user/NashornMigrationGuide.md https://github.com/oracle/graaljs/blob/master/docs/user/Nash... [1] https://github.com/oracle/graaljs https://github.com/oracle/graaljs