mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-10 13:11:50 +09:00
more graal stuffs
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user