We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I got below with ./go/build.sh test.
v8eval/_obj/_all.o # internal PASS ok github.com/sony/v8eval/go/v8eval 2.063s
But it could not run, get error message:
# # Fatal error in ../src/isolate.cc, line 2355 # Check failed: thread_data_table_. # SIGABRT: abort PC=0x7fff8bfdef06 m=0 sigcode=0 signal arrived during cgo execution goroutine 1 [syscall, locked to thread]: runtime.cgocall(0x40be510, 0xc42005fe30, 0x40ffffffffffff) /usr/local/opt/go/libexec/src/runtime/cgocall.go:131 +0xe2 fp=0xc42005fe00 sp=0xc42005fdc0 github.com/sony/v8eval/go/v8eval._Cfunc__wrap_new__GoV8_v8eval_d573689ab81df8d6(0x0) github.com/sony/v8eval/go/v8eval/_obj/_cgo_gotypes.go:294 +0x4a fp=0xc42005fe30 sp=0xc42005fe00 github.com/sony/v8eval/go/v8eval.NewX_GoV8(0x4a108a0, 0xc420010430) /Users/user/goes/src/github.com/sony/v8eval/go/v8eval/v8eval.go:210 +0x22 fp=0xc42005fe68 sp=0xc42005fe30 github.com/sony/v8eval/go/v8eval.NewV8(0x0, 0xffffffffffffffff) /Users/user/goes/src/github.com/sony/v8eval/go/v8eval/v8.go:43 +0x40 fp=0xc42005fea0 sp=0xc42005fe68 main.Add(0x1, 0x3, 0x0) /Users/user/goes/src/main.go:7 +0x34 fp=0xc42005ff30 sp=0xc42005fea0 main.main() /Users/user/goes/src/main.go:14 +0x37 fp=0xc42005ff88 sp=0xc42005ff30 runtime.main() /usr/local/opt/go/libexec/src/runtime/proc.go:185 +0x20a fp=0xc42005ffe0 sp=0xc42005ff88 runtime.goexit() /usr/local/opt/go/libexec/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc42005ffe8 sp=0xc42005ffe0 goroutine 17 [syscall, locked to thread]: runtime.goexit() /usr/local/opt/go/libexec/src/runtime/asm_amd64.s:2197 +0x1 rax 0x0 rbx 0x6 rcx 0x7fff5fbfe7d8 rdx 0x0 rdi 0x307 rsi 0x6 rbp 0x7fff5fbfe800 rsp 0x7fff5fbfe7d8 r8 0x40 r9 0x7fff774501e0 r10 0x8000000 r11 0x206 r12 0x7fff77450bd0 r13 0x44 r14 0x7fff773b6000 r15 0x933 rip 0x7fff8bfdef06 rflags 0x206 cs 0x7 fs 0x0 gs 0x0 exit status 2
My source:
package main import "fmt" import "github.com/sony/v8eval/go/v8eval" func Add(x, y int) int { var v8 = v8eval.NewV8() v8.Eval("var add = (x,y) => x + y", nil) var sum int v8.Call("add", []int{x, y}, &sum) return sum } func main() { res := Add(1, 3) fmt.Println(res) }
Mac OS 10.11.6 go 1.8.3
The text was updated successfully, but these errors were encountered:
Sorry, I lost
func main() { v8eval.Initialize() fmt.Println(Add(1, 2)) v8eval.Dispose() }
Sorry, something went wrong.
No branches or pull requests
Hi,
I got below with ./go/build.sh test.
But it could not run, get error message:
My source:
Mac OS 10.11.6
go 1.8.3
The text was updated successfully, but these errors were encountered: