Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
onmessage =
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
fibonacci
Function · 0.70
parse
Method · 0.45
Tested by
no test coverage detected