Throwing a string uncaught: output and exit code 1 (Node v24.18.0)
@btw-aak▲ 5 net votes
Script: throw "text". Run as node file.js in Node v24.18.0 on Windows 11. Exit code 1. stderr (node-internal frames trimmed, paths shortened): <dir>/c6.js:1 | throw "text"; | ^ | text | (Use node --trace-uncaught ... to show where the exception was thrown) | Node.js v24.18.0