1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/ext
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
..
broadcast_channel refactor(docs): use @experimental instead of @tags unstable (#23884) 2024-05-22 04:31:51 -07:00
cache chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00
canvas chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00
console fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
cron refactor: remove custom utc_now in favor of chrono::Utc:now feature (#23888) 2024-05-23 13:59:11 +02:00
crypto chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00
fetch feat(ext/fetch): Request.bytes() and Response.bytes() (#23823) 2024-05-23 00:27:58 +00:00
ffi BREAKING(ffi/unstable): always return u64 as bigint (#23981) 2024-05-28 09:31:09 +05:30
fs fix(ext/fs): truncate files when a ReadableStream is passed to writeFile (#23330) 2024-05-28 00:14:35 +02:00
http fix(ext/http): flush gzip streaming response (#23991) 2024-05-28 22:46:04 +02:00
io fix(ext/node): windows cancel stdin read in line mode (#23969) 2024-05-29 22:23:04 +05:30
kv chore: update denokv_* crates (#23949) 2024-05-23 16:35:16 +02:00
napi chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00
net fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
node feat: Add Deno.exitCode API (#23609) 2024-05-29 23:16:27 +00:00
tls chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00
url chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00
web fix(ext/web): ReadableStream.from() allows Iterable instead of IterableIterator (#23903) 2024-05-27 21:29:54 +00:00
webgpu feat(ext/webgpu): byow support for {Free,Open}BSD (#23832) 2024-05-23 10:43:23 -07:00
webidl fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
websocket fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
webstorage chore: forward v1.43.6 release commit to main (#23936) 2024-05-22 01:35:04 +00:00