Files
node/lib/internal
Matteo Collina 632576930e worker: preload streams into startup snapshot
Worker stdio loads stream after restoring the main-thread context,
initializing its constructors and prototype methods on every startup.
Preload stream during snapshot construction so workers can restore that
initialized state instead. Worker-specific stdio instances and message
ports are still created at runtime.

Verify snapshot membership, stdio methods, and isolation from
parent-thread stream mutations.

Assisted-by: pi
Signed-off-by: Matteo Collina <hello@matteocollina.com>
PR-URL: https://github.com/nodejs/node/pull/66311
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
2026-11-12 18:00:41 +01:00
..
2026-08-04 18:40:45 +02:00
2026-10-12 14:38:33 +00:00
2026-11-12 17:45:23 +01:00
2024-10-09 06:42:16 +00:00
2026-08-04 18:40:45 +02:00
2026-11-12 17:45:23 +01:00
2026-01-30 19:46:49 +00:00
2026-10-06 01:42:16 +02:00
2025-10-04 22:08:00 +02:00
2026-05-30 19:26:27 +02: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.