Closed sprappcom closed 5 months ago
runtime := hs.runtimePool.Get().(*goja.Runtime) defer hs.runtimePool.Put(runtime)
func (hs *httpServer) newRuntime() *goja.Runtime { vm := goja.New() _, err := vm.RunString(hs.scriptData) if err != nil { log.Fatalf("Failed to initialize Goja runtime: %s", err) } return vm }
thx by the way for this repo.
I'm not really sure what the question is, sorry.
thx by the way for this repo.