more graal stuffs

This commit is contained in:
minjaesong
2020-12-01 14:38:36 +09:00
parent 6403a84af3
commit 8cb9ae9c5c
4 changed files with 29 additions and 21 deletions

View File

@@ -54,6 +54,7 @@ object VMRunnerFactory {
init {
// see https://github.com/graalvm/graaljs/blob/master/docs/user/ScriptEngine.md
bind.put("polyglot.js.allowHostAccess", true)
bind.put("js.console", false)
bind.put("sys", VMJSR223Delegate(vm)) // TODO use delegator class to access peripheral (do not expose VM itself)
bind.put("graphics", GraphicsJSR223Delegate(vm))