mirror of
https://github.com/denoland/deno.git
synced 2025-02-03 05:05:35 -05:00
11 lines
328 B
TypeScript
11 lines
328 B
TypeScript
|
onmessage = (msg): void => {
|
||
|
if (msg.data === "START") {
|
||
|
postMessage("has_ns.ts: is window.Deno available: " + !!window.Deno);
|
||
|
} else {
|
||
|
const worker = new Worker("./tests/039_worker_deno_ns/maybe_ns.ts");
|
||
|
worker.onmessage = (msg): void => {
|
||
|
postMessage("[SPAWNED BY has_ns.ts] " + msg.data);
|
||
|
};
|
||
|
}
|
||
|
};
|