Added features that don't work

This commit is contained in:
Anuken
2019-11-30 22:15:30 -05:00
parent ceae04aa5b
commit b21c25bccf
2 changed files with 2 additions and 0 deletions

View File

@ -155,6 +155,7 @@ project(":desktop"){
compile "com.github.Anuken:steamworks4j:$steamworksVersion"
compile "org.graalvm.js:js:19.3.0"
compile "org.graalvm.sdk:graal-sdk:19.3.0"
compile arcModule("backends:backend-sdl")
compile 'com.github.MinnDevelopment:java-discord-rpc:v2.0.1'

View File

@ -24,6 +24,7 @@ public class GraalScripts extends Scripts{
hb.denyAccess(c);
}
builder.allowHostAccess(hb.build());
builder.allowExperimentalOptions(true).option("js.syntax-extensions", "true");
context = builder.build();
wrapper = Core.files.internal("scripts/wrapper.js").readString();