summaryrefslogtreecommitdiff
path: root/cli/tests/single_compile_with_reload.ts
blob: f84e91f2f366f7f147b316a54ba20de7a25a80a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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(
    new URL("single_compile_with_reload_worker.ts", import.meta.url).href,
    { type: "module" },
  ).onmessage = r
);
console.log("3");
await new Promise((r) =>
  new Worker(
    new URL("single_compile_with_reload_worker.ts", import.meta.url).href,
    { type: "module" },
  ).onmessage = r
);
console.log("4");