Files
scriptc/tests/corpus/6424-process-exit-keeps-exitcode.ts
T
Malte UblandClaude Opus 5.5 20ab1c0531 Merge main into opt/bc-node-surface
Resolve the conflicts with main's process.features value, the WebCrypto dynamic types, the NODE_COMPAT_VERSION import and the symbol.declarations API. Renumber this branch's corpus programs to 6420-6429, write the new limitations partial one sentence per line, and regenerate the compatibility outputs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 19:02:41 -07:00

6 lines
187 B
TypeScript

// @exit: 5
// process.exit() without an argument keeps process.exitCode.
process.exitCode = 5;
process.on("exit", (code) => console.log("exit", code, process.exitCode));
process.exit();