1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-19 12:16:17 -05:00
denoland-deno/tests/testdata/workers/close_nested_parent.js
2024-12-31 19:12:39 +00:00

13 lines
274 B
JavaScript

// Copyright 2018-2025 the Deno authors. MIT license.
console.log("Starting the parent worker");
new Worker(
import.meta.resolve("./close_nested_child.js"),
{ type: "module" },
);
self.addEventListener("message", () => {
console.log("Closing");
self.close();
});