Files
node/lib/internal
Joyee Cheung 793a2792d5 module: throw error when re-runing errored module jobs
Re-evaluating an errored ESM should lead to rejecting
the rejection again - this is also the case when importing
it twice. In the case of retrying with
require after import, just throw the cached error.

Drive-by: add some debug logs.
PR-URL: https://github.com/nodejs/node/pull/58957
Fixes: https://github.com/nodejs/node/issues/58945
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2025-07-09 16:39:29 +00:00
..
2025-06-29 21:39:04 +00:00
2025-07-07 06:44:07 -07:00
2025-06-11 13:47:31 +00:00
2025-06-28 22:51:59 +00:00
…
2024-10-09 06:42:16 +00:00
2025-06-14 14:06:04 -07:00
…
…
…
2025-02-28 16:25:49 +00:00
2024-12-04 09:29:30 -08:00
2025-06-14 14:06:04 -07: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.