node/lib/internal
Chengzhong Wu 398674a25a
lib: avoid StackOverflow on serializeError
`serializeError` should avoid StackOverflow and the test should not
rely on `--stack-size`.

PR-URL: https://github.com/nodejs/node/pull/58075
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2025-05-02 17:06:58 -03:00
..
assert assert,util: improve array comparison 2025-05-02 17:05:50 -03:00
async_local_storage async_hooks: enable AsyncLocalStorage once constructed 2025-05-02 17:06:52 -03:00
bootstrap process: add execve 2025-05-02 17:05:37 -03:00
child_process
cluster
console
crypto crypto: fix cross-realm SharedArrayBuffer validation 2025-05-02 17:06:44 -03:00
debugger debugger: fix behavior of plain object exec in debugger repl 2025-05-02 17:05:27 -03:00
dns dns: remove redundant code using common variable 2025-05-02 17:05:09 -03:00
events
fs src: fix internalModuleStat v8 fast path 2025-05-02 17:06:57 -03:00
http2 http2: add raw header array support to h2Session.request() 2025-05-02 17:06:48 -03:00
inspector
legacy
main watch: clarify completion/failure watch mode messages 2025-05-02 17:06:44 -03:00
modules esm: avoid import.meta setup costs for unused properties 2025-05-02 17:06:58 -03:00
per_context
perf
process process: disable building execve on IBM i 2025-05-02 17:06:31 -03:00
quic http2: add raw header array support to h2Session.request() 2025-05-02 17:06:48 -03:00
readline Revert "readline: add stricter validation for functions called after closed" 2025-05-02 17:06:46 -03:00
repl repl: add support for multiline history 2025-05-02 17:06:20 -03:00
source_map lib: limit split function calls to prevent excessive array length 2025-05-02 17:05:26 -03:00
streams stream: preserve AsyncLocalStorage context in finished() 2025-05-02 17:06:26 -03:00
test
test_runner test_runner: support mocking json modules 2025-05-02 17:06:47 -03:00
tls tls: remove deprecated tls.createSecurePair 2025-05-02 17:05:10 -03:00
util assert: support Float16Array in loose deep equality checks 2025-05-02 17:06:33 -03:00
v8
vm esm: support source phase imports for WebAssembly 2025-05-02 17:04:39 -03:00
watch_mode watch: check parent and child path properly 2025-05-02 17:06:03 -03:00
webstreams stream: fix sizeAlgorithm validation in WritableStream 2025-05-02 17:04:53 -03:00
worker lib: limit split function calls to prevent excessive array length 2025-05-02 17:05:26 -03:00
abort_controller.js lib: fix AbortSignal.any() with timeout signals 2025-05-02 17:06:30 -03:00
assert.js
async_context_frame.js lib: use Map primordial for ActiveAsyncContextFrame 2025-05-02 17:06:10 -03:00
async_hooks.js inspector: skip promise hook in the inspector async hook 2025-02-23 01:07:21 +00:00
blob.js lib: limit split function calls to prevent excessive array length 2025-05-02 17:05:26 -03:00
blocklist.js
buffer.js src: migrate from deprecated SnapshotCreator constructor 2025-05-02 17:06:24 -03:00
child_process.js
cli_table.js
constants.js
data_url.js
dgram.js
encoding.js
error_serdes.js lib: avoid StackOverflow on serializeError 2025-05-02 17:06:58 -03:00
errors.js lib: limit split function calls to prevent excessive array length 2025-05-02 17:05:26 -03:00
event_target.js
file.js
fixed_queue.js
freelist.js
freeze_intrinsics.js
heap_utils.js
histogram.js
http.js
inspector_async_hook.js inspector: skip promise hook in the inspector async hook 2025-02-23 01:07:21 +00:00
inspector_network_tracking.js
js_stream_socket.js
linkedlist.js
mime.js
navigator.js
net.js lib: add warning when binding inspector to public IP 2025-05-02 17:05:35 -03:00
options.js doc: allow the $schema property in node.config.json 2025-05-02 17:06:04 -03:00
priority_queue.js lib: optimize priority queue 2025-05-02 17:04:38 -03:00
promise_hooks.js
querystring.js
README.md
repl.js
socket_list.js
socketaddress.js
stream_base_commons.js
timers.js timers: remove unnecessary allocation of _onTimeout 2025-05-02 17:05:32 -03:00
trace_events_async_hooks.js
tty.js lib: limit split function calls to prevent excessive array length 2025-05-02 17:05:26 -03:00
url.js
util.js os: fix netmask format check condition in getCIDR function 2025-05-02 17:06:35 -03:00
v8_prof_polyfill.js
v8_prof_processor.js
validators.js
vm.js esm: support source phase imports for WebAssembly 2025-05-02 17:04:39 -03:00
wasm_web_api.js
watchdog.js
webidl.js
webstorage.js
worker.js worker: add worker.getHeapStatistics() 2025-05-02 17:06:29 -03:00

Internal Modules

The modules located in lib/internal directory are exclusively meant for internal usage within the Node.js core. They are not intended to be accessed via user modules require(). These modules may change at any point in time. Relying on these internal modules outside the core is not supported and can lead to unpredictable behavior.

In certain scenarios, accessing these internal modules for debugging or experimental purposes might be necessary. Node.js provides the --expose-internals flag to expose these modules to userland code. This flag only exists to assist Node.js maintainers with debugging internals. It is not meant for use outside the project.