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:
parent
9b4a588d41
commit
d7a9ed9714
1 changed files with 4 additions and 0 deletions
|
@ -507,6 +507,10 @@ function resolveExports(
|
|||
return;
|
||||
}
|
||||
|
||||
if (!parentPath) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return ops.op_require_resolve_exports(
|
||||
usesLocalNodeModulesDir,
|
||||
modulesPath,
|
||||
|
|
Loading…
Add table
Reference in a new issue