1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/ext/node
Luke Edwards 13723f267e
feat: Add Deno.exitCode API (#23609)
This commits adds the ability to set a would-be exit code 
for the Deno process without forcing an immediate exit, 
through the new `Deno.exitCode` API.

- **Implements `Deno.exitCode` getter and setter**: Adds support for
setting
and retrieving a would-be exit code via `Deno.exitCode`.
This allows for asynchronous cleanup before process termination 
without immediately exiting.
- **Ensures type safety**: The setter for `Deno.exitCode` validates that
the provided value is a number, throwing a TypeError if not, to ensure
that
only valid exit codes are set.

Closes to #23605

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-05-29 23:16:27 +00:00
..
benchmarks fix: implement child_process IPC (#21490) 2023-12-13 11:14:16 +01:00
ops fix(ext/node): return cancelled flag in get_response_body_chunk op (#23962) 2024-05-23 23:01:20 +05:30
polyfills feat: Add Deno.exitCode API (#23609) 2024-05-29 23:16:27 +00:00
analyze.rs perf: analyze cjs re-exports in parallel (#23894) 2024-05-21 10:35:51 -04:00
build.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
Cargo.toml chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00
clippy.toml refactor(ext/fs): deno_fs::FileSystem - conditional Send + Sync (#18993) 2023-05-08 11:02:02 -04:00
errors.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
global.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
lib.rs feat(node): buffer isUtf8/isAscii (#23928) 2024-05-21 15:50:59 -07:00
package_json.rs feat(runtime): Allow embedders to perform additional access checks on file open (#23208) 2024-04-19 18:12:03 -06:00
path.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
polyfill.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
README.md chore(ext/node): correct publishing for ext/node (#15461) 2022-08-11 17:25:41 -04:00
resolution.rs perf(node): put pkg json into an Rc (#23156) 2024-04-01 09:10:04 -04:00

deno_node

require and other node related functionality for Deno.