mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 23:37:32 +00:00
Added additional GraalJS flags
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user