PhoenicisOrg/phoenicis

Support GraalVM >= 21.2.0

Opened this issue · 0 comments

plata commented

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