2022-01-07 22:09:52 -05:00
|
|
|
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
|
2021-09-22 12:02:15 -04:00
|
|
|
|
|
|
|
// 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(
|
2022-07-20 10:56:53 -04:00
|
|
|
import.meta.resolve("./workers/drop_handle_race.js"),
|
2021-09-22 12:02:15 -04:00
|
|
|
{ type: "module" },
|
|
|
|
);
|