node/lib/internal
Antoine du Hamel 50f336c06f esm: fallback to getSource when load returns nullish source
When using the Modules Customization Hooks API to load CommonJS modules,
we want to support the returned value of `defaultLoad` which must be
nullish to preserve backward compatibility. This can be achieved by
fetching the source from the translator.

PR-URL: https://github.com/nodejs/node/pull/50825
Fixes: https://github.com/nodejs/node/issues/50435
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
2023-11-29 09:49:48 -03:00
..
assert
bootstrap module: bootstrap module loaders in shadow realm 2023-11-23 10:15:44 +01:00
child_process
cluster net: do not treat server.maxConnections=0 as Infinity 2023-06-26 06:17:51 +00:00
console lib: support FORCE_COLOR for non TTY streams 2023-05-18 12:36:38 +00:00
crypto stream: treat compression web stream format per its WebIDL definition 2023-11-23 10:15:41 +01:00
debugger debugger: use internal/url.URL instead of url.parse 2023-09-13 18:03:14 +00:00
dns dns: call handle.setServers() with a valid array 2023-11-29 09:46:34 -03:00
events
fs fs: fix glob returning duplicates 2023-11-29 09:46:36 -03:00
http2 errors: improve hideStackFrames 2023-11-14 09:18:05 +01:00
legacy src: implement natives binding without special casing 2023-06-09 15:32:55 +02:00
main module: bootstrap module loaders in shadow realm 2023-11-23 10:15:44 +01:00
modules esm: fallback to getSource when load returns nullish source 2023-11-29 09:49:48 -03:00
per_context lib: update usage of always on Atomics API 2023-10-10 08:26:58 +02:00
perf perf_hooks: implement performance.now() with fast API calls 2023-11-29 09:45:22 -03:00
policy policy: use tamper-proof integrity check function 2023-10-13 18:03:19 -03:00
process src: add --disable-warning option 2023-11-29 09:46:34 -03:00
readline readline: add paste bracket mode 2023-08-12 13:39:24 +02:00
repl lib: fix output message when repl is used with pm 2023-06-17 17:28:38 +00:00
source_map module: add SourceMap.lineLengths 2023-07-12 18:37:32 +00:00
streams stream: fix Writable.destroy performance regression 2023-11-14 09:17:50 +01:00
test src: distinguish HTML transferable and cloneable 2023-07-07 17:00:00 +00:00
test_runner test_runner: add tests for various mock timer issues 2023-11-23 10:15:40 +01:00
tls tls: fix order of setting cipher before setting cert and key 2023-11-23 10:15:46 +01:00
util lib: reduce overhead of validateObject 2023-10-02 12:56:39 +00:00
v8 bootstrap: throw ERR_NOT_SUPPORTED_IN_SNAPSHOT in unsupported operation 2023-05-24 14:49:46 +02:00
vm vm: use import attributes instead of import assertions 2023-10-24 09:41:05 +02:00
watch_mode lib: use internal fileURLToPath 2023-09-10 14:57:37 +00:00
webstreams stream: fix enumerability of ReadableStream.from 2023-11-29 09:46:34 -03:00
worker worker: protect against user mutating well-known prototypes 2023-08-23 09:06:51 +00:00
abort_controller.js lib: reduce overhead of validateObject 2023-10-02 12:56:39 +00:00
assert.js
async_hooks.js
blob.js lib: reduce overhead of blob clone 2023-10-23 08:19:32 +02:00
blocklist.js src: distinguish HTML transferable and cloneable 2023-07-07 17:00:00 +00:00
buffer.js
child_process.js errors: improve hideStackFrames 2023-11-14 09:18:05 +01:00
cli_table.js lib: align console.table row to the left 2023-11-11 20:38:27 +01:00
constants.js
dgram.js src: return uint32 for guessHandleType 2023-06-15 19:21:49 +00:00
encoding.js lib: reduce overhead of validateObject 2023-10-02 12:56:39 +00:00
error_serdes.js lib: add support for inherited custom inspection methods 2023-06-11 08:10:47 +00:00
errors.js errors: improve hideStackFrames 2023-11-14 09:18:05 +01:00
event_target.js lib: make event static properties non writable and configurable 2023-11-14 09:18:01 +01:00
file.js
fixed_queue.js
freelist.js
freeze_intrinsics.js lib: update usage of always on Atomics API 2023-10-10 08:26:58 +02:00
heap_utils.js
histogram.js perf_hooks: reduce overhead of createHistogram 2023-11-11 20:37:41 +01:00
http.js
idna.js
inspector_async_hook.js
js_stream_socket.js http2: allow streams to complete gracefully after goaway 2023-10-23 08:19:40 +02:00
linkedlist.js
mime.js util: remove internal mime fns from benchmarks 2023-10-23 08:19:43 +02:00
navigator.js lib: add navigator.language & navigator.languages 2023-11-14 09:17:55 +01:00
net.js errors: improve hideStackFrames 2023-11-14 09:18:05 +01:00
options.js
priority_queue.js test_runner: add Date to the supported mock APIs 2023-11-11 20:37:40 +01:00
promise_hooks.js
querystring.js
readme.md
repl.js
socket_list.js
socketaddress.js src: distinguish HTML transferable and cloneable 2023-07-07 17:00:00 +00:00
stream_base_commons.js errors: improve hideStackFrames 2023-11-14 09:18:05 +01:00
timers.js
trace_events_async_hooks.js
tty.js
url.js errors: improve performance of instantiation 2023-09-28 09:57:38 +00:00
util.js util: improve performance of normalizeEncoding 2023-11-23 10:15:47 +01:00
v8_prof_polyfill.js
v8_prof_processor.js src: implement natives binding without special casing 2023-06-09 15:32:55 +02:00
validators.js errors: improve hideStackFrames 2023-11-14 09:18:05 +01:00
vm.js vm: allow dynamic import with a referrer realm 2023-11-14 09:17:50 +01:00
wasm_web_api.js
watchdog.js
webidl.js stream: treat compression web stream format per its WebIDL definition 2023-11-23 10:15:41 +01:00
worker.js test: update flag to disable SharedArrayBuffer 2023-10-10 08:27:59 +02:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.