0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-08 14:48:40 +00:00

call InitializeSandbox

This commit is contained in:
Stefan Siegl 2022-06-24 21:54:08 +02:00
parent 883c9000c3
commit 23cc21c5b8

View File

@ -71,6 +71,10 @@ void v8js_v8_init() /* {{{ */
v8js_process_globals.v8_platform = v8::platform::NewDefaultPlatform();
v8::V8::InitializePlatform(v8js_process_globals.v8_platform.get());
#ifdef V8_ENABLE_SANDBOX
v8::V8::InitializeSandbox();
#endif
/* Set V8 command line flags (must be done before V8::Initialize()!) */
if (v8js_process_globals.v8_flags) {
size_t flags_len = strlen(v8js_process_globals.v8_flags);