1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/tests/specs/run
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
..
045_proxy feat(ext/fetch): Request.bytes() and Response.bytes() (#23823) 2024-05-23 00:27:58 +00:00
dynamic_already_prepared perf: avoid building module graph if dynamic specifier already in graph (#24035) 2024-05-29 14:59:35 -04:00
env_unparsable_file fix: --env flag confusing message on syntax error (#23915) 2024-05-27 15:06:18 +02:00
exit_code feat: Add Deno.exitCode API (#23609) 2024-05-29 23:16:27 +00:00
import_map_parent_dir fix: handle specifying an import map in an ancestor dir of deno.json (#23602) 2024-04-29 14:32:27 -04:00
invalid_emit_options fix(cli): Don't panic on invalid emit options (#23463) 2024-04-23 08:50:50 -07:00
keep_comments_ts fix(emit): regression - keep comments in emit (#23815) 2024-05-14 22:01:31 +00:00
no_deno_json chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
no_reparse_first_load chore: add test to ensure parsing only happens once on first load (#23837) 2024-05-21 16:12:40 -04:00
redirect_javascript chore(specs): use jsonc for metadata file (#22946) 2024-03-15 17:27:52 +00:00
unref_stdin fix: unref stdin read (#23534) 2024-04-25 05:32:01 +00:00
v8_jitless test: add test for running in V8 jitless mode (#23054) 2024-04-15 23:47:01 +00:00
workspaces fix(workspace): provide workspace members as 'imports' in import map (#23492) 2024-04-23 17:21:06 +02:00