Open loadgame opened 1 year ago
This seems to fix the issue
func runJavascript(script string) string {
val, err := ctx.RunScript(script, "test.js")
defer val.Release() // <= release the value
if err != nil {
slog.Error("error", "val", val, "err", err)
}
return val.String()
}
main.go
log below