node/lib/internal
cjihrig ecaeaf8f87 test_runner: pass harness object as option to root test
This commit initializes the root harness object before the root
test and passes the harness as an option to the root test
constructor. This commit also attaches the global configuration
to the harness. This will allow the parseCommandLine() call in
test.js to be removed, as those values are now available via
the root test.

PR-URL: https://github.com/nodejs/node/pull/54353
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2024-08-15 13:52:54 +00:00
..
assert lib: optimize copyError with ObjectAssign in primordials 2024-07-25 12:12:35 +00:00
async_local_storage lib: improve async_context_frame structure 2024-08-09 19:44:42 +00:00
bootstrap process: port on-exit-leak-free to core 2024-07-11 17:57:20 +00:00
child_process tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
cluster lib: improve cluster/primary code 2024-07-21 22:23:17 +00:00
console console: use validateOneOf for colorMode validation 2024-08-10 01:49:40 +00:00
crypto crypto: remove ERR_CRYPTO_SCRYPT_INVALID_PARAMETER 2024-07-10 16:38:00 +00:00
debugger
dns lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
events lib: fix naming convention of Symbol 2024-06-10 14:56:14 +00:00
fs fs: ensure consistency for mkdtemp in both fs and fs/promises 2024-07-23 11:56:18 +00:00
http2 http2: remove prototype primordials 2024-07-05 06:20:12 +00:00
legacy tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
main test_runner: use run() argument names in parseCommandLine() 2024-08-15 13:52:53 +00:00
modules test_runner: do not expose internal loader 2024-08-13 15:17:50 +02:00
per_context tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
perf lib: add toJSON to PerformanceMeasure 2024-06-29 04:48:23 +00:00
process lib: improve async_context_frame structure 2024-08-09 19:44:42 +00:00
readline http, readline: replace sort with toSorted 2024-07-10 16:46:24 +00:00
repl repl: fix await object patterns without values 2024-06-07 01:24:32 +00:00
source_map lib: decorate async stack trace in source maps 2024-07-18 14:45:43 +00:00
streams lib: replace spread operator with primordials function 2024-08-12 07:05:39 +00:00
test v8: implement v8.queryObjects() for memory leak regression testing 2024-03-02 22:11:30 +00:00
test_runner test_runner: pass harness object as option to root test 2024-08-15 13:52:54 +00:00
tls tls: fix negative sessionTimeout handling 2024-05-18 00:26:11 +00:00
util lib: support dynamic trace events on debugWithTimer 2024-07-28 17:20:38 +00:00
v8 lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
vm vm: fix ASCII-betical order 2024-04-25 19:14:16 +00:00
watch_mode test_runner: handle file rename and deletion under watch mode 2024-06-02 08:11:30 +00:00
webstreams lib: fix unhandled errors in webstream adapters 2024-08-06 18:34:35 +00:00
worker worker: add postMessageToThread 2024-07-09 07:16:04 +00:00
abort_controller.js lib: use predefined variable instead of bit operation 2024-04-20 16:24:25 +00:00
assert.js
async_context_frame.js lib: improve async_context_frame structure 2024-08-09 19:44:42 +00:00
async_hooks.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
blob.js buffer: add JSDoc to blob bytes method 2024-08-05 00:29:07 +00:00
blocklist.js
buffer.js buffer: use fast API for writing one-byte strings 2024-08-15 01:01:05 +00:00
child_process.js child_process: remove unused internal event 2024-08-01 03:07:10 +00:00
cli_table.js lib: align console.table row to the left 2023-10-28 01:14:22 +00:00
constants.js
dgram.js lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
encoding.js stream: implement min option for ReadableStreamBYOBReader.read 2024-01-04 12:57:14 +01:00
error_serdes.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
errors.js lib,src: drop --experimental-network-imports 2024-07-28 16:33:05 +00:00
event_target.js lib: fix naming convention of Symbol 2024-06-10 14:56:14 +00:00
file.js lib,src: replace toUSVString with toWellFormed() 2023-11-29 16:00:57 +00:00
fixed_queue.js
freelist.js
freeze_intrinsics.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
heap_utils.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
histogram.js lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
http.js src,lib: expose getCategoryEnabledBuffer to use on node.http 2024-07-16 18:40:22 +00:00
idna.js
inspector_async_hook.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
inspector_network_tracking.js inspector: support Network.loadingFailed event 2024-08-11 11:42:01 +00:00
js_stream_socket.js http2: fix h2-over-h2 connection proxying 2024-04-08 09:53:18 +00:00
linkedlist.js
mime.js util: pass invalidSubtypeIndex instead of trimmedSubtype to error 2023-12-25 04:29:00 +00:00
navigator.js lib: make navigator not runtime-lookup process.version/arch/platform 2024-07-15 23:09:54 +00:00
net.js lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
options.js src: reduce unnecessary serialization of CLI options in C++ 2024-05-02 22:57:03 +00:00
priority_queue.js test_runner: add Date to the supported mock APIs 2023-10-23 11:23:12 +00:00
promise_hooks.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
querystring.js
README.md lib, doc: rename readme.md to README.md 2024-04-14 10:30:31 +00:00
repl.js
socket_list.js
socketaddress.js
stream_base_commons.js http2: fix h2-over-h2 connection proxying 2024-04-08 09:53:18 +00:00
timers.js lib: improve async_context_frame structure 2024-08-09 19:44:42 +00:00
trace_events_async_hooks.js
tty.js
url.js url: modify pathToFileURL to handle extended UNC path 2024-08-12 14:48:39 +00:00
util.js lib: refactor platform utility methods 2024-07-15 18:58:11 +00:00
v8_prof_polyfill.js
v8_prof_processor.js
validators.js lib: fix misleading argument of validateUint32 2024-06-05 22:59:05 +00:00
vm.js typings: lib/internal/vm.js 2024-02-19 01:19:44 +00:00
wasm_web_api.js
watchdog.js
webidl.js stream: treat compression web stream format per its WebIDL definition 2023-11-12 10:01:51 +00:00
webstorage.js src: move ToNamespacedPath call of webstorage 2024-07-21 20:49:10 +00:00
worker.js worker: add postMessageToThread 2024-07-09 07:16:04 +00: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.