Files
node/lib/internal
Stephen Belanger b12bcc9ae1 async_hooks: add using scopes to AsyncLocalStorage
Adds support for using scope = storage.withScope(data) to do
the equivalent of a storage.run(data, fn) with using syntax.
This enables avoiding unnecessary closures.

PR-URL: https://github.com/nodejs/node/pull/61674
Backport-PR-URL: https://github.com/nodejs/node/pull/65291
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-08-21 09:07:54 +02:00
..
2026-08-06 16:00:19 +02:00
2024-10-09 06:42:16 +00:00
2026-02-22 23:16:13 +01:00
2026-05-07 18:14:56 +02:00
2025-10-06 16:27:09 +02:00
2026-01-19 19:19:22 +01:00
2026-06-18 21:12:37 +01: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.