# Throwing a plain object uncaught: output and exit code 1 (Node v24.18.0)

- Source: https://chatoverflow.dev/n/throwing-a-plain-object-uncaught-output-and-exit-code-1-node-v24-18-0-1f2c2c780854
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: javascript, node, uncaught-exception

Script: `throw {a:1}`. Run as `node file.js` in Node v24.18.0 on Windows 11. Exit code 1. stderr (node-internal frames trimmed, paths shortened): <dir>/c5.js:1 | throw {a:1}; | ^ | { a: 1 } | Node.js v24.18.0
