1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 00:59:24 -05:00
denoland-deno/tools/wpt/testharnessreport.js

14 lines
369 B
JavaScript
Raw Normal View History

// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
window.add_result_callback(({ message, name, stack, status }) => {
Deno.writeAllSync(
Deno.stderr,
new TextEncoder().encode(
`${JSON.stringify({ name, status, message, stack })}\n`,
),
);
});
window.add_completion_callback((tests, harnessStatus) => {
Deno.exit(0);
});