Added additional GraalJS flags

This commit is contained in:
Luis C.M committed 2022-11-27 23:56:38 -06:00
1 parent 57920b02b7
commit 68600d7d00
1 file changed
+4
@@ -216,6 +216,10 @@ public class ScriptContainer {
engine.getBindings(ScriptContext.ENGINE_SCOPE).put("polyglot.js.allowHostClassLookup", (Predicate<String>) s -> true);
engine.getBindings(ScriptContext.ENGINE_SCOPE).put("polyglot.js.allowHostClassLoading", true);
engine.getBindings(ScriptContext.ENGINE_SCOPE).put("polyglot.js.allowNativeAccess", true);
System.setProperty("polyglot.js.nashorn-compat", "true");
System.setProperty("polyglot.js.scripting", "true");
System.setProperty("polyglot.js.scripting", "true");
System.setProperty("polyglot.js.syntax-extensions", "true");
this.engine = engine;
currentScriptLanguage = scriptLanguage;