From f7e0a1a7dbcc21319ecf4d40d983e163b48d597b Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Mon, 4 May 2026 05:32:16 +0200 Subject: [PATCH 1/2] test: ignore late worker exceptions in WPT runner Signed-off-by: marcopiraccini --- test/common/wpt/worker.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/common/wpt/worker.js b/test/common/wpt/worker.js index 74a35419cd1dfa..9edc2b64795805 100644 --- a/test/common/wpt/worker.js +++ b/test/common/wpt/worker.js @@ -92,6 +92,8 @@ const timeout = setTimeout(() => { // eslint-disable-next-line no-undef add_completion_callback((_, status) => { clearTimeout(timeout); + // Match browsers: exceptions thrown after done() do not fail the test. + process.on('uncaughtException', () => {}); parentPort.postMessage({ type: 'completion', status, From c6751d8999c30e3f0001785a10e5b6174f960927 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Tue, 26 May 2026 04:47:42 +0200 Subject: [PATCH 2/2] comment fixup Signed-off-by: marcopiraccini --- test/common/wpt/worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/wpt/worker.js b/test/common/wpt/worker.js index 9edc2b64795805..6e8206179cfd14 100644 --- a/test/common/wpt/worker.js +++ b/test/common/wpt/worker.js @@ -92,7 +92,7 @@ const timeout = setTimeout(() => { // eslint-disable-next-line no-undef add_completion_callback((_, status) => { clearTimeout(timeout); - // Match browsers: exceptions thrown after done() do not fail the test. + // Match WPT semantics: exceptions thrown after done() do not fail the test. process.on('uncaughtException', () => {}); parentPort.postMessage({ type: 'completion',