Skip to content

Commit 0fd6321

Browse files
committed
esm: fix broken assertion in legacyMainResolve
1 parent a76b724 commit 0fd6321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/modules/esm/resolve.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function legacyMainResolve(packageJSONUrl, packageConfig, base) {
216216
}
217217
// Not found.
218218
throw new ERR_MODULE_NOT_FOUND(
219-
fileURLToPath(new URL('.', packageJSONUrl)), fileURLToPath(base));
219+
fileURLToPath(new URL('.', packageJSONUrl)), fileURLToPath(base), null);
220220
}
221221

222222
/**

0 commit comments

Comments
 (0)