| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1474153 commit 5347c49
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -471,6 +471,10 @@ class ModuleLoader { | |||
| 471 | 471 | const resolvedImportAttributes = resolveResult.importAttributes ?? importAttributes; | |
| 472 | 472 | let job = this.loadCache.get(url, resolvedImportAttributes.type); | |
| 473 | 473 | if (job !== undefined) { | |
| 474 | + // TODO(node:55782): this race may stop happening when the ESM resolution and loading become synchronous. | ||
| 475 | + if (!job.module) { | ||
| 476 | + assert.fail(getRaceMessage(url, parentURL)); | ||
| 477 | + } | ||
| 474 | 478 | // This module is being evaluated, which means it's imported in a previous link | |
| 475 | 479 | // in a cycle. | |
| 476 | 480 | if (job.module.getStatus() === kEvaluating) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments