Skip to content

Commit

Permalink
esm: fix broken assertion in legacyMainResolve
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Nov 5, 2024
1 parent a76b724 commit 0fd6321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/modules/esm/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function legacyMainResolve(packageJSONUrl, packageConfig, base) {
}
// Not found.
throw new ERR_MODULE_NOT_FOUND(
fileURLToPath(new URL('.', packageJSONUrl)), fileURLToPath(base));
fileURLToPath(new URL('.', packageJSONUrl)), fileURLToPath(base), null);
}

/**
Expand Down

0 comments on commit 0fd6321

Please sign in to comment.