Skip to content

Commit 633b4d5

Browse files
gireeshpunathiladdaleax
authored andcommitted
lib: absorb path error cases
Absorb low level libuv failure in the process initialization phase Fixes: #33759 Refs: #33759 (comment) PR-URL: #34519 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Zeyu Yang <[email protected]> Reviewed-By: Harshitha K P <[email protected]>
1 parent 145691b commit 633b4d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/internal/bootstrap/pre_execution.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ function patchProcessObject(expandArgv1) {
8989
if (expandArgv1 && process.argv[1] && !process.argv[1].startsWith('-')) {
9090
// Expand process.argv[1] into a full path.
9191
const path = require('path');
92-
process.argv[1] = path.resolve(process.argv[1]);
92+
try {
93+
process.argv[1] = path.resolve(process.argv[1]);
94+
} catch {}
9395
}
9496

9597
// TODO(joyeecheung): most of these should be deprecated and removed,

0 commit comments

Comments
 (0)