node/lib/internal/util
Darshan Sen 1a7fc186bc
sea: allow requiring core modules with the "node:" prefix
Previously, the `require()` function exposed to the embedded SEA code
was calling the internal `require()` function if the module name
belonged to the list of public core modules but the internal `require()`
function does not support loading modules with the "node:" prefix, so
this change forwards the calls to another `require()` function that
supports this.

Fixes: https://github.com/nodejs/single-executable/issues/69
Signed-off-by: Darshan Sen <raisinten@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/47779
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2023-05-12 11:57:02 +02:00
..
parse_args tools: fix jsdoc lint 2023-05-12 11:56:59 +02:00
colors.js lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00
comparisons.js lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00
debuglog.js lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00
embedding.js sea: allow requiring core modules with the "node:" prefix 2023-05-12 11:57:02 +02:00
inspect.js tools: fix jsdoc lint 2023-05-12 11:56:59 +02:00
inspector.js lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00
iterable_weak_map.js lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00
types.js lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00