0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

fix(node_compat): Wrap require resolve exports in try catch block (#19592)

Potentially closes #19499
This commit is contained in:
Vedant Pandey 2023-07-24 14:00:03 +05:30 committed by GitHub
parent 9b4a588d41
commit d7a9ed9714
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -507,6 +507,10 @@ function resolveExports(
return;
}
if (!parentPath) {
return false;
}
return ops.op_require_resolve_exports(
usesLocalNodeModulesDir,
modulesPath,