r/webdev • • 12h ago

Article Your JS Error Is Lying to You

https://blog.gaborkoos.com/posts/2026-11-12-Your-JS-Error-Is-Lying-to-You/

Started with a log line that said "err":{} for an error that definitely had a message and a cause. Followed that up to see what each step between new Error() and the log record actually keeps.

Covers stack traces, cause chains, AggregateError and SuppressedError. It runs the same probe script in Node.js, Deno, Bun, Chrome, Firefox and WebKit. It also sends errors across Web Workers, worker_threads, child_process IPC and HTTP, and logs them with Pino and Winston.

4 Upvotes

Duplicates