diff --git a/test/fuzzer/wasm.cc b/test/fuzzer/wasm.cc index fb9135b0f1..8815762826 100644 --- a/test/fuzzer/wasm.cc +++ b/test/fuzzer/wasm.cc @@ -55,5 +55,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { if (compiles) { i::wasm::fuzzer::InterpretAndExecuteModule(i_isolate, module_object); } + + // Pump the message loop and run micro tasks, e.g. GC finalization tasks. + support->PumpMessageLoop(v8::platform::MessageLoopBehavior::kDoNotWait); + isolate->RunMicrotasks(); return 0; }