Skip to content

Commit

Permalink
esm: fix broken assertion in legacyMainResolve
Browse files Browse the repository at this point in the history
PR-URL: #55708
Fixes: #55692
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Marco Ippolito <[email protected]>
  • Loading branch information
aduh95 committed Nov 7, 2024
1 parent e4739e9 commit 3059262
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 3059262

Please sign in to comment.