Skip to content

Commit

Permalink
chore(wpt): expose gc (denoland#20060)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
marcosc90 committed Aug 5, 2023
1 parent 6b0f75d commit a1280c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/wpt/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export async function runSingleTest(
"run",
"-A",
"--unstable",
"--v8-flags=--expose-gc",
];

if (inspectBrk) {
Expand Down

0 comments on commit a1280c3

Please sign in to comment.