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

File fib-worker.js

examples/worker/fib-worker.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1onmessage = async event => {
2 const { fibonacci } = await import("./fibonacci");
3 const value = JSON.parse(event.data);
4 postMessage(`fib(${value}) = ${fibonacci(value)}`);

Callers

nothing calls this directly

Calls 2

fibonacciFunction · 0.70
parseMethod · 0.45

Tested by

no test coverage detected