Skip to content

Commit 335cb0d

Browse files
gireeshpunathilcodebytere
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 c4457d8 commit 335cb0d

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
@@ -92,7 +92,9 @@ function patchProcessObject(expandArgv1) {
9292
if (expandArgv1 && process.argv[1] && !process.argv[1].startsWith('-')) {
9393
// Expand process.argv[1] into a full path.
9494
const path = require('path');
95-
process.argv[1] = path.resolve(process.argv[1]);
95+
try {
96+
process.argv[1] = path.resolve(process.argv[1]);
97+
} catch {}
9698
}
9799

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

0 commit comments

Comments
 (0)