1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/tests/unit_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
..
_fs fix(ext/node/fs): position argument not applied (#24009) 2024-05-28 14:30:31 +02:00
crypto fix(ext/node): exporting rsa public keys (#23596) 2024-04-29 19:16:38 +05:30
internal chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
testdata fix(ext/node): don't encode buffer data as utf8 in http2 (#24016) 2024-05-29 11:34:34 +05:30
_test_utils.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
assertion_error_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
async_hooks_test.ts fix(node): stub AsyncResource.emitDestroy() (#23802) 2024-05-15 00:42:43 +02:00
buffer_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
child_process_test.ts fix(ext/node): support stdin: "inherit" in node:child_process (#23110) 2024-03-28 19:44:42 +05:30
console_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
dgram_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
domain_test.ts fix(ext/node): polyfill node:domain module (#23088) 2024-04-03 21:37:10 +02:00
events_test.ts fix(ext/node): implement EventEmitterAsyncResource (#22994) 2024-03-20 11:20:18 +05:30
fs_test.ts fix(ext/node/fs): position argument not applied (#24009) 2024-05-28 14:30:31 +02:00
http2_test.ts fix(ext/node): don't encode buffer data as utf8 in http2 (#24016) 2024-05-29 11:34:34 +05:30
http_test.ts fix(node): set default http server response code 200 (#23977) 2024-05-26 09:32:46 +02:00
module_test.ts fix(node): stub findSourceMap for ava (#23899) 2024-05-20 16:42:42 +02:00
net_test.ts fix(ext/node): Correctly send ALPN on node TLS connections (#23434) 2024-04-18 09:37:47 -06:00
os_test.ts fix(ext/node): homedir() getpwuid/SHGetKnownFolderPath fallback (#23841) 2024-05-16 10:52:40 +05:30
path_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
perf_hooks_test.ts fix(ext/node): add stubs for perf_hooks.PerformaceObserver (#23958) 2024-05-23 04:59:20 -07:00
process_test.ts feat: Add Deno.exitCode API (#23609) 2024-05-29 23:16:27 +00:00
punycode_test.ts feat: TypeScript 5.4 (#23086) 2024-03-26 18:52:57 -04:00
querystring_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
readline_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
repl_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
stream_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
string_decoder_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
timers_test.ts fix(ext/node): spread args in setImmediate (#22998) 2024-03-20 07:52:50 +00:00
tls_test.ts fix(ext/node): Correctly send ALPN on node TLS connections (#23434) 2024-04-18 09:37:47 -06:00
tty_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
util_test.ts fix: util.parseArgs() missing node:process import (#22405) 2024-02-18 07:30:27 -07:00
v8_test.ts fix(node): implement v8 serialize and deserialize (#22975) 2024-03-18 13:48:55 +05:30
vm_test.ts fix(ext/node): promise rejection in VM contexts (#23305) 2024-04-13 17:02:07 +05:30
worker_threads_test.ts fix(node): patch MessagePort in worker_thread message (#23871) 2024-05-20 15:01:40 +02:00
zlib_test.ts chore: ignore flaky brotli test (#23020) 2024-03-21 17:01:11 +00:00