deno
33bee46d - fix(runtime): warn on unsupported web Worker options and fix recv panic (#33310)

Commit
88 days ago
fix(runtime): warn on unsupported web Worker options and fix recv panic (#33310) ## Summary - Emit a console warning when node-specific options (`env`, `workerData`) are passed to the web `Worker()` constructor, directing users to `node:worker_threads` instead. These options are silently ignored by web Workers, which can lead to subtle bugs like infinite worker recursion. - Replace `handle_receiver.recv().unwrap()` in `op_create_worker` with a proper error return, so a worker thread dying before initialization produces a JS error instead of a process panic. Fixes #31058 --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Parents
Loading