rogchap/v8go

signal: bus error on Mac

durgaprasadksv opened this issue · 0 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?