From fa264c9ec5a6229d9b2a8f30f23734ff7ce7261d Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Fri, 3 Feb 2023 19:04:56 +0100 Subject: [PATCH] define V8_ENABLE_SANDBOX if needed --- php_v8js_macros.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/php_v8js_macros.h b/php_v8js_macros.h index eb6d811..a56c165 100644 --- a/php_v8js_macros.h +++ b/php_v8js_macros.h @@ -52,6 +52,10 @@ extern "C" { #undef COMPILER #endif +#ifdef V8_HAS_INITIALIZE_SANDBOX +#define V8_ENABLE_SANDBOX 1 +#endif + #include #include