rogchap / v8go

Execute JavaScript from Go

Home Page:https://rogchap.com/v8go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

If iso has no parameter transfer, it needs to be released

qing-shang opened this issue · comments

opts.iso = NewIsolate()

In all cases, it is not released
ctx := v8go.NewContext(nil)
ctx.Close()
ctx.Isolate().Dispose()

It can cause memory leaks

I think that is expected. Although, the documentation could be updated to make this clearer.