Offload functions to worker threads with shared memory primitives for Node.js.
Something went wrong. Try again.
feat: surface main-thread call site in error stack traces master
Wrap errors in an async catch block inside trackValue (pool) and runOnDedicated (dedicated), re-throwing with the worker error as cause. V8's async stack traces then extend the new error with the caller's await chain, so users see where run(), exec(), or await task was called. Adds one microtask hop per dispatch. The error subclass identity and cause chain are preserved. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author Devin Ivy Co-author Claude Opus 4.6 (1M context) Date (Apr 15, 2026, 2:48 PM UTC) Commit 3612d521 3612d5215c0c596e37b1acbb1ed6df1a44916582 Parent 51372010 51372010abe1660c74b15fe12a76e8b38236c8e3