test: fix broken env fuzzer by initializing process
Signed-off-by: Adam Korczynski <adam@adalogics.com> PR-URL: https://github.com/nodejs/node/pull/51080 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
parent
261e88e269
commit
d9b61dbe89
@ -44,6 +44,7 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) {
|
|||||||
platform.reset(
|
platform.reset(
|
||||||
new node::NodePlatform(kV8ThreadPoolSize, tracing_controller));
|
new node::NodePlatform(kV8ThreadPoolSize, tracing_controller));
|
||||||
v8::V8::InitializePlatform(platform.get());
|
v8::V8::InitializePlatform(platform.get());
|
||||||
|
cppgc::InitializeProcess(platform->GetPageAllocator());
|
||||||
v8::V8::Initialize();
|
v8::V8::Initialize();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user