MCPcopy
hub / github.com/webpack/webpack / worker.js

File worker.js

test/hotCases/worker/remove-add-worker/worker.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1self.onmessage = async ({ data }) => {
2 try {
3 if (data !== "compute") throw new Error("expected compute message");
4 self.postMessage(42);

Callers

nothing calls this directly

Calls 1

postMessageMethod · 0.80

Tested by

no test coverage detected