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

Method constructor

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

* @param {ModuleLoader} loader The ESM loader. * @param {string} url URL of the module to be wrapped in ModuleJob. * @param {ImportAttributes} importAttributes Import attributes from the import statement. * @param {ModuleWrap} moduleWrap Translated ModuleWrap for the module. * @param {nu

(loader, url, importAttributes, moduleWrap, phase = kEvaluationPhase, isMain,
              inspectBrk, requestType)

Source from the content-addressed store, hash-verified

475 * first line paused in the debugger (because --inspect-brk is passed).
476 */
477 constructor(loader, url, importAttributes, moduleWrap, phase = kEvaluationPhase, isMain,
478 inspectBrk, requestType) {
479 super(loader, url, importAttributes, phase, isMain, inspectBrk);
480
481 this.module = moduleWrap;
482
483 assert(this.module instanceof ModuleWrap);
484 this.linked = undefined;
485 this.type = importAttributes.type;
486 if (this.shouldLinkModule(phase)) {
487 this.linked = this.link(requestType);
488 }
489 }
490
491 /**
492 * @param {ModuleRequestType} requestType Type of the module request.

Callers

nothing calls this directly

Calls 3

linkMethod · 0.95
shouldLinkModuleMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected