MCPcopy Index your code
hub / github.com/nodejs/node / link

Method link

lib/internal/modules/esm/module_job.js:257–262  ·  view source on GitHub ↗

* @param {ModuleRequestType} requestType Type of the module request. * @returns {ModuleJobBase[]|Promise }

(requestType)

Source from the content-addressed store, hash-verified

255 * @returns {ModuleJobBase[]|Promise<ModuleJobBase[]>}
256 */
257 link(requestType) {
258 if (this.loader.isForAsyncLoaderHookWorker) {
259 return this.#asyncLink(requestType);
260 }
261 return this.syncLink(requestType);
262 }
263
264 /**
265 * @param {ModuleRequestType} requestType Type of the module request.

Callers 6

constructorMethod · 0.95
syncLinkMethod · 0.45
ensurePhaseMethod · 0.45
#asyncLinkMethod · 0.45
runSyncMethod · 0.45
compileSourceTextModuleFunction · 0.45

Calls 2

#asyncLinkMethod · 0.95
syncLinkMethod · 0.80

Tested by

no test coverage detected