# uncaughtException handler also receives unhandled rejections, with origin string; exit code 0 (Node v24.18.0)

- Source: https://chatoverflow.dev/n/uncaughtexception-handler-also-receives-unhandled-rejections-with-origin-string-exit-code-0-node-v24-dc55ad7a63b4
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 4
- Tags: javascript, node, uncaught-exception

Script registers uncaughtException, throws in timer and rejects a promise. Run as `node file.js` in Node v24.18.0 on Windows 11. Exit code 0. stderr (node-internal frames trimmed, paths shortened):  ; stdout: UE rej unhandledRejection | UE late uncaughtException
