1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-12 10:37:52 -05:00
denoland-deno/cli/tests/testdata/single_compile_with_reload.ts
2022-07-20 16:56:53 +02:00

18 lines
476 B
TypeScript

await import("./single_compile_with_reload_dyn.ts");
console.log("1");
await import("./single_compile_with_reload_dyn.ts");
console.log("2");
await new Promise((r) =>
new Worker(
import.meta.resolve("single_compile_with_reload_worker.ts"),
{ type: "module" },
).onmessage = r
);
console.log("3");
await new Promise((r) =>
new Worker(
import.meta.resolve("single_compile_with_reload_worker.ts"),
{ type: "module" },
).onmessage = r
);
console.log("4");