src: use V8_ENABLE_SANDBOX macro

It was renamed from V8_SANDBOX

PR-URL: https://github.com/nodejs/node/pull/44741
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Michaël Zasso 2022-06-16 14:22:35 +02:00
parent c10988db44
commit fd52c62bee
No known key found for this signature in database
GPG Key ID: 770F7A9A5AE15600

View File

@ -19,7 +19,7 @@ void NodeTestEnvironment::SetUp() {
NodeZeroIsolateTestFixture::platform.reset(
new node::NodePlatform(kV8ThreadPoolSize, tracing_controller));
v8::V8::InitializePlatform(NodeZeroIsolateTestFixture::platform.get());
#ifdef V8_SANDBOX
#ifdef V8_ENABLE_SANDBOX
ASSERT_TRUE(v8::V8::InitializeSandbox());
#endif
cppgc::InitializeProcess(