mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
13723f267e
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> |
||
---|---|---|
.. | ||
benchmarks | ||
ops | ||
polyfills | ||
analyze.rs | ||
build.rs | ||
Cargo.toml | ||
clippy.toml | ||
errors.rs | ||
global.rs | ||
lib.rs | ||
package_json.rs | ||
path.rs | ||
polyfill.rs | ||
README.md | ||
resolution.rs |
deno_node
require
and other node related functionality for Deno.