graal-js JSR 233 scripting engine?

Danilo Ansaloni danilo.ansaloni at oracle.com
Fri Jan 5 11:51:55 UTC 2018


Hi Adam,

yes, Graal.js implements JSR 223. It registers for the following:
- names: "Graal.js", "graal.js", "js", "JS", "JavaScript", "javascript", 
"ECMAScript", "ecmascript"
- mime types: "application/javascript", "application/ecmascript", 
"text/javascript", "text/ecmascript"
- extensions: "js"

If you use a recent GraalVM image you do not have to add the Graal.js 
jars to the class path.

However, to use Graal.js and the other Graal languages included in 
GraalVM images we recommend using our Polyglot API [1].

Please let us know if you encounter issues.

Cheers, Danilo

[1] http://graalvm.github.io/graal/sdk/javadoc/



On 01/05/2018 05:54 AM, Adam McMahon wrote:
> Hi,
>
> I am plan to experiment swapping nashorn with graal-js on a few pet
> projects.
>
> Does Graal-JS (and other graal languages) implement JSR 223 scripting API
> or a similar API?  I can't find any documentation on this.  Is there a plan
> for this in the future?
>
> -Adam



More information about the graal-dev mailing list