Skip to content

Commit

Permalink
lib: absorb path error cases
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
gireeshpunathil authored and addaleax committed Sep 22, 2020
1 parent 145691b commit 633b4d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/internal/bootstrap/pre_execution.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ function patchProcessObject(expandArgv1) {
if (expandArgv1 && process.argv[1] && !process.argv[1].startsWith('-')) {
// Expand process.argv[1] into a full path.
const path = require('path');
process.argv[1] = path.resolve(process.argv[1]);
try {
process.argv[1] = path.resolve(process.argv[1]);
} catch {}
}

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

0 comments on commit 633b4d5

Please sign in to comment.