Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Feb 12, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

0f-0b and others added 6 commits February 12, 2026 10:13
…enoland#32124)

## Summary
- Properly propagate `process.exitCode` from Node `worker_threads` to
the parent, matching Node.js behavior. Previously exit codes were
hardcoded to 0 (natural exit) or 1 (error exit), ignoring
`process.exitCode` set by the worker.
- Add `WorkerControlEvent::TerminalError` exit code field and dispatch
`process.emit("exit")` on worker termination so exit handlers can modify
the final code.
- Implement `process._fatalException` for uncaught exception handling,
including exit code 6 when monkey-patched to not be a function
(`kInvalidFatalExceptionMonkeyPatching`).

Fixes `test-worker-exit-code.js` — all 11 test cases now pass:
- `process.exitCode` assignment (case 0)
- `process.exit(code)` (cases 1-2)
- Uncaught exception with/without handlers (cases 3-9)
- `_fatalException = undefined` → exit code 6 (case 10)

---------

Co-authored-by: Claude Opus 4.6 <[email protected]>
…noland#32115)

The example script at example.deno.land appears to be long gone, I've
set up a redirect on the docs site so that

https://docs.deno.com/hello_world.ts to point to
https://docs.deno.com/examples/scripts/hello_world.ts which i think is a
nicer url for help text

Closes denoland#32114

Signed-off-by: Jo Franchetti <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@pull pull bot locked and limited conversation to collaborators Feb 12, 2026
@pull pull bot added the ⤵️ pull label Feb 12, 2026
@pull pull bot merged commit 6869ed4 into MainbaseT:main Feb 12, 2026
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants