-
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
- Update github workflow to use go 18 & 19 - Update github workflow to use macos-latest - Update github build workflow to use ubuntu 22.04 - Add gitignore for jetbrains and .gclient_previous files - Switch cgo build to C++17 and enable sandbox at build time - Update test with update to date error message - Remove no longer supported build flag. - Move initialization to v8go.go and include flag set to avoid flag freezing - Reorder initialization so allocator is initialized after v8 (required by latest v8)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
.gclient_entries | ||
|
||
deps/darwin-x86_64/libv8_debug.a | ||
|
||
deps/.gclient_previous* | ||
c.out | ||
|
||
.idea/* | ||
/v8go.test |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,12 @@ func SetFlags(flags ...string) { | |
C.SetFlags(cflags) | ||
C.free(unsafe.Pointer(cflags)) | ||
} | ||
|
||
func initializeIfNecessary() { | ||
v8once.Do(func() { | ||
cflags := C.CString("--no-freeze_flags_after_init") | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jacques-n
Author
Contributor
|
||
defer C.free(unsafe.Pointer(cflags)) | ||
C.SetFlags(cflags) | ||
C.Init() | ||
}) | ||
} |
Just curious, what this flag does and without it what behaviour were you seeing ?