Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support GraalVM >= 21.2.0 #2523

Open
plata opened this issue Apr 10, 2022 · 0 comments
Open

Support GraalVM >= 21.2.0 #2523

plata opened this issue Apr 10, 2022 · 0 comments

Comments

@plata
Copy link
Collaborator

plata commented Apr 10, 2022

The Nashorn compatibility changed to ECMAScript 5, see changelog. Therefore, e.g. several Array related methods like flatMap() do not work anymore (see also this comment).

It might be sufficient to set the ES version in:


Similar to:

Bindings bindings = engine.getBindings(ScriptContext.ENGINE_SCOPE);
bindings.put("polyglot.js.ecmascript-version", "2017");

see #2522, #2525, PhoenicisOrg/scripts#1256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant