Skip to content

Commit 3059262

Browse files
committed
esm: fix broken assertion in legacyMainResolve
PR-URL: #55708 Fixes: #55692 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent e4739e9 commit 3059262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/modules/esm/resolve.js

Lines changed: 1 addition & 1 deletion
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)