From fa4c14d7e6172a2ffe4b4317dbdfae9af8d7c33c Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Mon, 4 May 2026 05:32:16 +0200 Subject: [PATCH] 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,