node/lib/internal
Daeyeon Jeong 7b1e153530
src: simplify exit code accesses
This simplifies getting the exit code which is set through
`process.exitCode` by removing manually reading the JS property
from the native side.

Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/45125
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2022-11-10 01:09:18 +00:00
..
assert cli: add --watch 2022-09-05 12:25:09 +03:00
bootstrap src: simplify exit code accesses 2022-11-10 01:09:18 +00:00
child_process child_process: improve ipc write performance 2022-06-19 16:10:53 +02:00
cluster src: consolidate exit codes in the code base 2022-10-06 12:41:16 +00:00
console bootstrap: clean up inspector console methods during serialization 2022-09-07 11:20:40 +00:00
crypto crypto: handle more webcrypto errors with OperationError 2022-11-07 06:35:35 +00:00
debugger src: consolidate exit codes in the code base 2022-10-06 12:41:16 +00:00
dns dns: support dns module in the snapshot 2022-09-29 01:58:21 +08:00
events lib: performance improvement on readline async iterator 2022-10-24 12:49:16 +00:00
fs fs: update todo message 2022-11-01 18:32:36 +00:00
http2 http2: improve session close/destroy procedures 2022-10-26 09:16:00 +00:00
legacy lib: make process.binding('util') return only type checkers 2021-03-27 15:45:12 +00:00
main bootstrap: merge main thread and worker thread initializations 2022-10-14 13:53:34 +00:00
modules lib: fix JSDoc issues 2022-11-07 07:04:29 +00:00
per_context esm: protect ESM loader from prototype pollution 2022-10-27 20:09:07 +00:00
perf perf_hooks: align toStringTag with other Web Performance implementations 2022-10-27 23:34:39 +00:00
policy src: consolidate exit codes in the code base 2022-10-06 12:41:16 +00:00
process lib: drop fetch experimental warning 2022-11-05 15:15:07 +00:00
readline lib: performance improvement on readline async iterator 2022-10-24 12:49:16 +00:00
repl repl: fix overzealous top-level await 2022-07-15 20:30:50 +01:00
source_map src,lib: retrieve parsed source map url from v8 2022-10-23 22:37:21 +08:00
streams stream: add compose operator 2022-10-31 13:57:02 +00:00
test lib: add support for JSTransferable as a mixin 2021-04-26 07:55:48 -07:00
test_runner test_runner: support function mocking 2022-11-07 18:25:54 -05:00
tls tls: use logical OR operator 2022-08-16 21:34:56 +00:00
util util: add default value option to parsearg 2022-10-07 14:11:32 +00:00
v8 bootstrap: fixup Error.stackTraceLimit for user-land snapshot 2022-08-18 13:05:31 +00:00
vm esm: protect ESM loader from prototype pollution 2022-10-27 20:09:07 +00:00
watch_mode cli: add --watch 2022-09-05 12:25:09 +03:00
webstreams stream: fix web streams have no Symbol.toStringTag 2022-10-26 15:48:48 +00:00
worker lib: refactor to avoid prototype pollution 2022-08-17 18:36:33 +00:00
abort_controller.js lib: fix AbortSignal.timeout parameter validation 2022-10-31 12:47:38 +00:00
assert.js benchmark,doc,lib,test: prepare for padding lint rule 2019-11-30 06:28:29 -08:00
async_hooks.js src: consolidate exit codes in the code base 2022-10-06 12:41:16 +00:00
blob.js buffer: fix validation of options in Blob constructor 2022-11-01 00:47:51 +01:00
blocklist.js net: allow net.BlockList to use net.SocketAddress objects 2021-04-02 06:16:42 -07:00
buffer.js buffer,errors: add missing n literal in range error string 2021-04-17 19:34:42 +02:00
child_process.js lib: add diagnostics channel for process and worker 2022-08-30 17:08:33 +00:00
cli_table.js lib: refactor to use primordials in lib/internal/cli_table 2021-04-05 18:20:38 -07:00
constants.js lib: replace charCodeAt with fixed Unicode 2020-06-19 07:46:37 -07:00
dgram.js lib: refactor to use validateFunction 2021-01-27 20:46:54 +02:00
encoding.js util: improve text-decoder performance 2022-11-09 14:17:31 +00:00
error_serdes.js lib: use null-prototype objects for property descriptors 2022-06-03 09:23:58 +01:00
errors.js dns: fix port validation 2022-10-25 17:02:36 +00:00
event_target.js lib: add ability to add separate event name to defineEventHandler 2022-10-19 00:43:11 +00:00
fixed_queue.js lib: fix reference leak 2022-09-07 09:33:10 +00:00
freelist.js http: remove unused hasItems() from freelist 2019-12-03 15:00:45 -08:00
freeze_intrinsics.js lib: fix TODO in freeze_intrinsics 2022-06-27 16:15:16 +01:00
heap_utils.js lib: add options to the heap snapshot APIs 2022-11-08 16:19:54 +01:00
histogram.js lib: use kEmptyObject in various places 2022-06-11 12:18:16 +02:00
http.js http: trace http request / response 2022-08-05 14:25:06 +00:00
idna.js dns: use url module instead of punycode for IDNA 2021-03-23 20:44:31 +01:00
inspector_async_hook.js async_hooks: refactor to use more primordials 2020-11-20 20:10:19 +00:00
js_stream_socket.js lib: use process.nextTick() instead of setImmediate() 2022-11-05 19:53:13 +01:00
linkedlist.js cluster: use linkedlist for round_robin_handle 2021-11-28 21:39:10 -08:00
mime.js util: add MIME utilities (#21128) 2022-10-19 04:26:16 +02:00
net.js tools: refactor avoid-prototype-pollution lint rule 2022-08-27 11:37:04 +02:00
options.js bootstrap: refresh options in pre-execution 2022-03-31 19:29:08 +08:00
priority_queue.js lib: refactor PriorityQueue to use private field 2022-07-23 21:44:18 +01:00
promise_hooks.js lib: use kEmptyObject in various places 2022-06-11 12:18:16 +02:00
querystring.js typings: add JSDoc Types to lib/querystring 2021-04-18 11:00:28 +02:00
readme.md
repl.js lib: use Number.parseInt from primordials 2020-10-07 13:44:20 +00:00
socket_list.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
socketaddress.js lib,test: fix bug in InternalSocketAddress 2022-09-15 16:13:03 +00:00
stream_base_commons.js lib: replace validator and error 2022-02-05 08:36:48 -08:00
structured_clone.js lib: throw error in structuedClone when no arguments are passed 2022-01-24 23:17:37 +00:00
timers.js timers: refactor internal classes to ES2015 syntax 2022-04-04 09:43:49 +01:00
trace_events_async_hooks.js lib: comment explaining special-case handling of promises 2021-07-23 03:54:33 +00:00
tty.js lib: refactor to avoid unsafe regex primordials 2022-06-27 17:16:06 +02:00
url.js lib: make properties on Blob and URL enumerable 2022-10-14 23:49:39 +00:00
util.js test_runner: fix afterEach not running on test failures 2022-11-07 05:58:39 +00:00
v8_prof_polyfill.js tools: add console to the list of restricted globals 2022-02-19 19:00:55 +00:00
v8_prof_processor.js lib: refactor to avoid unsafe array iteration 2021-10-03 09:48:07 +00:00
validators.js lib: fix JSDoc issues 2022-11-07 07:04:29 +00:00
vm.js src,lib: retrieve parsed source map url from v8 2022-10-23 22:37:21 +08:00
wasm_web_api.js bootstrap: support more builtins in the embedded code cache 2022-08-05 01:11:20 +08:00
watchdog.js test: add semicolons for linter update 2021-11-08 13:16:21 -08:00
webidl.js perf_hooks: convert maxSize to IDL value in setResourceTimingBufferSize 2022-10-13 17:25:33 +00:00
worker.js lib: add options to the heap snapshot APIs 2022-11-08 16:19:54 +01:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.