mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
test_runner: do not expose internal loader
PR-URL: https://github.com/nodejs/node/pull/54106 Fixes: https://github.com/nodejs/node/issues/54071 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
parent
1d35a066e7
commit
d0f5943363
4 changed files with 24 additions and 24 deletions
|
@ -491,7 +491,7 @@ class ModuleLoader {
|
|||
/**
|
||||
* @see {@link CustomizedModuleLoader.register}
|
||||
*/
|
||||
register(specifier, parentURL, data, transferList) {
|
||||
register(specifier, parentURL, data, transferList, isInternal) {
|
||||
if (!this.#customizations) {
|
||||
// `CustomizedModuleLoader` is defined at the bottom of this file and
|
||||
// available well before this line is ever invoked. This is here in
|
||||
|
@ -499,7 +499,7 @@ class ModuleLoader {
|
|||
// eslint-disable-next-line no-use-before-define
|
||||
this.setCustomizations(new CustomizedModuleLoader());
|
||||
}
|
||||
return this.#customizations.register(`${specifier}`, `${parentURL}`, data, transferList);
|
||||
return this.#customizations.register(`${specifier}`, `${parentURL}`, data, transferList, isInternal);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -636,10 +636,11 @@ class CustomizedModuleLoader {
|
|||
* @param {any} [data] Arbitrary data to be passed from the custom loader
|
||||
* (user-land) to the worker.
|
||||
* @param {any[]} [transferList] Objects in `data` that are changing ownership
|
||||
* @param {boolean} [isInternal] For internal loaders that should not be publicly exposed.
|
||||
* @returns {{ format: string, url: URL['href'] }}
|
||||
*/
|
||||
register(originalSpecifier, parentURL, data, transferList) {
|
||||
return hooksProxy.makeSyncRequest('register', transferList, originalSpecifier, parentURL, data);
|
||||
register(originalSpecifier, parentURL, data, transferList, isInternal) {
|
||||
return hooksProxy.makeSyncRequest('register', transferList, originalSpecifier, parentURL, data, isInternal);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue