From a1280c36c245daf1552651559d3c3c6c6e8ed71b Mon Sep 17 00:00:00 2001 From: Marcos Casagrande Date: Sat, 5 Aug 2023 23:34:14 +0200 Subject: [PATCH] chore(wpt): expose gc (#20060) This PR exposes garbage collector for WPT see: https://github.com/web-platform-tests/wpt/blob/3d80f7e87928e2d0da25d1c60a13dab001332139/common/gc.js#L34-L36 ``` /streams/readable-streams/garbage-collection.any.html test stderr: Tests are running without the ability to do manual garbage collection. They will still work, but coverage will be suboptimal. Tests are running without the ability to do manual garbage collection. They will still work, but coverage will be suboptimal. Tests are running without the ability to do manual garbage collection. They will still work, but coverage will be suboptimal. Tests are running without the ability to do manual garbage collection. They will still work, but coverage will be suboptimal. file result: ok. 4 passed; 0 failed; 0 expected failure; total 4 (255ms) ---------------------------------------- /streams/readable-streams/garbage-collection.any.worker.html test stderr: Tests are running without the ability to do manual garbage collection. They will still work, but coverage will be suboptimal. Tests are running without the ability to do manual garbage collection. They will still work, but coverage will be suboptimal. Tests are running without the ability to do manual garbage collection. They will still work, but coverage will be suboptimal. Tests are running without the ability to do manual garbage collection. They will still work, but coverage will be suboptimal. file result: ok. 4 passed; 0 failed; 0 expected failure; total 4 (277ms) ``` This PR removes that warning and improves coverage. --- tools/wpt/runner.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/wpt/runner.ts b/tools/wpt/runner.ts index 90898ae6ffd753..fb39ddfa49099f 100644 --- a/tools/wpt/runner.ts +++ b/tools/wpt/runner.ts @@ -101,6 +101,7 @@ export async function runSingleTest( "run", "-A", "--unstable", + "--v8-flags=--expose-gc", ]; if (inspectBrk) {