From 23cc21c5b86ec1250dd2e6ca7b9d9abb9ac9a0cd Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Fri, 24 Jun 2022 21:54:08 +0200 Subject: [PATCH] call InitializeSandbox --- v8js_v8.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v8js_v8.cc b/v8js_v8.cc index 8d8f99a..81bfb09 100644 --- a/v8js_v8.cc +++ b/v8js_v8.cc @@ -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);