MCPcopy
hub / github.com/webpack/webpack / next

Function next

test/hotCases/worker/move-between-runtime/index.js:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 });
16
17const next = w => {
18 const p = expectMessage(w, "next");
19 w.postMessage("next");
20 return p;
21};
22
23it("should support hot module replacement in WebWorkers", async () => {
24 const a = new Worker(new URL("workerA.js", import.meta.url));

Callers 1

index.jsFile · 0.70

Calls 2

expectMessageFunction · 0.85
postMessageMethod · 0.80

Tested by

no test coverage detected