1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -05:00
denoland-deno/tests/testdata/workers/parent_read_check_worker.js

13 lines
261 B
JavaScript
Raw Normal View History

const worker = new Worker(
import.meta.resolve("./read_check_granular_worker.js"),
{ type: "module", deno: { permissions: "none" } },
);
onmessage = ({ data }) => {
worker.postMessage(data);
};
worker.onmessage = ({ data }) => {
postMessage(data);
};