Skip to content

Commit fa4c14d

Browse files
test: ignore late worker exceptions in WPT runner
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
1 parent b2f6aa3 commit fa4c14d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/common/wpt/worker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ const timeout = setTimeout(() => {
9292
// eslint-disable-next-line no-undef
9393
add_completion_callback((_, status) => {
9494
clearTimeout(timeout);
95+
// Match browsers: exceptions thrown after done() do not fail the test.
96+
process.on('uncaughtException', () => {});
9597
parentPort.postMessage({
9698
type: 'completion',
9799
status,

0 commit comments

Comments
 (0)