Truly independent web browser
Tests/LibWasm: Collect garbage between test files
Andreas Klingc5ca87563ac8
diff --git a/Tests/LibWasm/test-wasm.cpp b/Tests/LibWasm/test-wasm.cppindex c8a1d988a5a..bb090525076 100644--- a/Tests/LibWasm/test-wasm.cpp+++ b/Tests/LibWasm/test-wasm.cpp@@ -245,6 +245,9 @@ HashMap<ImportName, Wasm::Runtime::Extern> WebAssemblyModule::s_spec_test_namespTESTJS_RUN_FILE_FUNCTION(ByteString const&, JS::Realm&, JS::ExecutionContext&){WebAssemblyModule::reset_store();+ // NB: The memories of the last file hold on to their address space until they are collected, and running out of it+ // is not something that makes the heap collect them.+ GC::Heap::the().collect_garbage();return Test::JS::RunFileHookResult::RunAsNormal;}