* @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)
| 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. |
nothing calls this directly
no test coverage detected