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,