restricting host access

This commit is contained in:
minjaesong
2021-10-27 19:37:23 +09:00
parent 886bea5ccb
commit 1c8261cc7e
5 changed files with 31 additions and 430 deletions

View File

@@ -47,7 +47,7 @@ object IME {
private val highLayers = HashMap<String, TerrarumInputMethod>()
private val context = org.graalvm.polyglot.Context.newBuilder("js")
.allowHostAccess(org.graalvm.polyglot.HostAccess.ALL)
.allowHostAccess(org.graalvm.polyglot.HostAccess.EXPLICIT)
// .allowHostClassLookup { it.equals("net.torvald.terrarum.gamecontroller.IMEProviderDelegate") }
.allowHostClassLookup { false }
.allowIO(false)