We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8d68d3 commit db70cebCopy full SHA for db70ceb
lib/internal/modules/esm/loader.js
@@ -471,6 +471,10 @@ class ModuleLoader {
471
const resolvedImportAttributes = resolveResult.importAttributes ?? importAttributes;
472
let job = this.loadCache.get(url, resolvedImportAttributes.type);
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
+ }
478
// This module is being evaluated, which means it's imported in a previous link
479
// in a cycle.
480
if (job.module.getStatus() === kEvaluating) {
0 commit comments