Skip to content

Commit 4692e28

Browse files
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 1fe39f0 commit 4692e28

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
@@ -98,7 +98,9 @@ function patchProcessObject(expandArgv1) {
9898
if (expandArgv1 && process.argv[1] && !process.argv[1].startsWith('-')) {
9999
// Expand process.argv[1] into a full path.
100100
const path = require('path');
101-
process.argv[1] = path.resolve(process.argv[1]);
101+
try {
102+
process.argv[1] = path.resolve(process.argv[1]);
103+
} catch {}
102104
}
103105

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

0 commit comments

Comments
 (0)