Skip to content

Commit 3be65d9

Browse files
domeniccodex
andauthored
Disable unused HTML reports in the WPT runner
The Node runner consumes result and completion callbacks and never displays the test documents. Disable testharness's visual output to avoid constructing large results tables for every file. These tables increase allocation pressure and can dominate retained document memory. On older Node.js versions, this can cause OOMs due to the bug at nodejs/node#66053. Co-authored-by: codex <[email protected]>
1 parent d555e61 commit 3be65d9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎test/web-platform-tests/run-single-wpt.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ function createJSDOM(urlPrefix, testPath, expectFail, expectationsFilenameForErr
128128
const errors = [];
129129

130130
window.shimTest = () => {
131+
// Results are reported through callbacks, so do not build a report in each test document.
132+
window.setup({ output: false });
133+
131134
const oldSetup = window.setup;
132135
window.setup = options => {
133136
if (options.allow_uncaught_exception) {

0 commit comments

Comments
 (0)