mirror of
https://github.com/denoland/deno.git
synced 2024-11-14 16:33:45 -05:00
13 lines
294 B
JavaScript
13 lines
294 B
JavaScript
|
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);
|
||
|
});
|