blob: 731a36964880a1e8efbe53a2b7041a3cf780d61a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// https://github.com/denoland/deno/issues/11342
// Test for a panic that happens when the main thread's event loop finishes
// running while the worker's event loop is still spinning.
// The exception thrown in the worker will not terminate the worker, but it will
// propagate to the main thread and cause it to exit.
new Worker(
import.meta.resolve("../workers/drop_handle_race.js"),
{ type: "module" },
);
|