rogchap / v8go

Execute JavaScript from Go
https://rogchap.com/v8go
BSD 3-Clause "New" or "Revised" License
3.21k stars 221 forks source link

v0.9.0 not work on x86_64 linux #398

Open l33klin opened 1 year ago

l33klin commented 1 year ago

v0.8.0 works fine but v0.9.0 shows an error when importing the module.

Kernel: Linux version 5.10.104-linuxkit Pubilish: Linux 5f2cc39ae1c6 5.10.104-linuxkit #1 SMP Wed Mar 9 19:05:23 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Error Log:

root@5f2cc39ae1c6:~/tmp# go run main.go
# rogchap.com/v8go
In file included from vendor/rogchap.com/v8go/deps/include/v8-local-handle.h:12:0,
                 from vendor/rogchap.com/v8go/deps/include/v8-profiler.h:14,
                 from v8go.h:10,
                 from v8go.cc:5:
vendor/rogchap.com/v8go/deps/include/v8-internal.h:462:49: error: expected ',' before ')' token
   static_assert(IsSharedExternalPointerType(Tag));
                                                 ^
vendor/rogchap.com/v8go/deps/include/v8-internal.h:398:3: note: in expansion of macro 'CHECK_SHARED_EXTERNAL_POINTER_TAGS'
   V(kFirstSharedTag,                            TAG(0)) \
   ^
vendor/rogchap.com/v8go/deps/include/v8-internal.h:466:1: note: in expansion of macro 'SHARED_EXTERNAL_POINTER_TAGS'
 SHARED_EXTERNAL_POINTER_TAGS(CHECK_SHARED_EXTERNAL_POINTER_TAGS)
 ^