You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 19, 2019. It is now read-only.
package main
import (
"github.com/ry/v8worker2"
)
funcmain() {
worker:=v8worker2.New(func(msg []byte) []byte {
returnnil
})
err:=worker.Load("codeWithRecv.js", ` V8Worker2.recv(function(msg) { var data = new ArrayBuffer(5600000) }) `)
iferr!=nil {
panic(err)
}
fori:=0; i<=1000; i++ {
err=worker.SendBytes([]byte(`test`))
iferr!=nil {
panic(err)
}
}
}
Throws this exception:
main(56725,0x70001067a000) malloc: *** error for object 0x60028e0: pointer being freed was not allocated
main(56725,0x70001067a000) malloc: *** set a breakpoint in malloc_error_break to debug
signal: abort trap
Platform: macOS 10.14.2
Note: built against v8 6.9.427.19 as suggested here: #22
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Run this test app:
main.go
Throws this exception:
Platform: macOS 10.14.2
Note: built against v8 6.9.427.19 as suggested here: #22
The text was updated successfully, but these errors were encountered: