(isEntryPoint = false)
| 434 | } |
| 435 | |
| 436 | async run(isEntryPoint = false) { |
| 437 | debug('ModuleJob.run()', this.module); |
| 438 | assert(this.shouldRunModule(this.phase)); |
| 439 | await this.#instantiate(); |
| 440 | if (isEntryPoint) { |
| 441 | globalThis[entry_point_module_private_symbol] = this.module; |
| 442 | } |
| 443 | const timeout = -1; |
| 444 | const breakOnSigint = false; |
| 445 | setHasStartedUserESMExecution(); |
| 446 | try { |
| 447 | await this.module.evaluate(timeout, breakOnSigint); |
| 448 | } catch (e) { |
| 449 | explainCommonJSGlobalLikeNotDefinedError(e, this.module.url, this.module.hasTopLevelAwait); |
| 450 | throw e; |
| 451 | } |
| 452 | return { __proto__: null, module: this.module }; |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | /** |
no test coverage detected