* * @param {string} url URL of the module. * @param {object} wrap Module wrap object. * @param {boolean} isEntryPoint Whether the module is the entry point. * @returns {Promise } The module object.
(url, wrap, isEntryPoint = false)
| 221 | * @returns {Promise<object>} The module object. |
| 222 | */ |
| 223 | async executeModuleJob(url, wrap, isEntryPoint = false) { |
| 224 | const module = await onImport.tracePromise(async () => { |
| 225 | const job = new ModuleJob(this, url, undefined, wrap, kEvaluationPhase, false, false, kImportInImportedESM); |
| 226 | this.loadCache.set(url, undefined, job); |
| 227 | const { module } = await job.run(isEntryPoint); |
| 228 | return module; |
| 229 | }, { |
| 230 | __proto__: null, |
| 231 | parentURL: '<eval>', |
| 232 | url, |
| 233 | }); |
| 234 | |
| 235 | return { |
| 236 | __proto__: null, |
| 237 | namespace: module.getNamespace(), |
| 238 | module, |
| 239 | }; |
| 240 | } |
| 241 | |
| 242 | /** |
| 243 | * |
no test coverage detected