1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/tests/specs/test
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
..
clean_flag feat(cli/test): deno test --clean (#23519) 2024-05-23 03:04:12 +00:00
exit_code feat: Add Deno.exitCode API (#23609) 2024-05-29 23:16:27 +00:00
exit_code2 feat: Add Deno.exitCode API (#23609) 2024-05-29 23:16:27 +00:00
exit_code3 feat: Add Deno.exitCode API (#23609) 2024-05-29 23:16:27 +00:00
include_relative_pattern_dot_slash chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
sanitizer_with_error chore(specs): use jsonc for metadata file (#22946) 2024-03-15 17:27:52 +00:00
sanitizer_with_top_level_ops chore(specs): use jsonc for metadata file (#22946) 2024-03-15 17:27:52 +00:00
slow_test feat(cli): Add slow test warning (#23874) 2024-05-22 08:08:27 -06:00
test_and_bench fix: don't panic in test and bench if ops not available (#23055) 2024-03-24 16:16:45 -07:00
type_check_with_doc fix(test): proper type checking for files with doc tests (#23654) 2024-05-02 18:13:51 +00:00
worker_large_output fix(cli): Identify and fix a test deadlock (#23411) 2024-04-16 15:14:59 -06:00