rogchap / v8go

Execute JavaScript from Go

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

signal: bus error on Mac

durgaprasadksv opened this issue · comments

I have the following error

signal: bus error when trying to run this simple code on Mac running go version go1.19 darwin/amd64

func main() {
	iso := v8.NewIsolate() 
	ctx1 := v8.NewContext(iso) // new context within the VM
	ctx1.RunScript("const multiply = (a, b) => a * b", "math.js")
}

How can I fix this?