1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -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);
};