bootstrap: remove unused catch bindings
PR-URL: https://github.com/nodejs/node/pull/24079 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Wyatt Preul <wpreul@gmail.com>
This commit is contained in:
parent
57c5c7d429
commit
81b335df80
@ -685,7 +685,7 @@
|
|||||||
function tryGetCwd(path) {
|
function tryGetCwd(path) {
|
||||||
try {
|
try {
|
||||||
return process.cwd();
|
return process.cwd();
|
||||||
} catch (ex) {
|
} catch {
|
||||||
// getcwd(3) can fail if the current working directory has been deleted.
|
// getcwd(3) can fail if the current working directory has been deleted.
|
||||||
// Fall back to the directory name of the (absolute) executable path.
|
// Fall back to the directory name of the (absolute) executable path.
|
||||||
// It's not really correct but what are the alternatives?
|
// It's not really correct but what are the alternatives?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user