Skip to content

Commit 3059262

Browse files
committedNov 7, 2024··
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

+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)
Please sign in to comment.