mirror of https://github.com/nodejs/node.git
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>pull/24079/head
parent
57c5c7d429
commit
81b335df80
|
@ -685,7 +685,7 @@
|
|||
function tryGetCwd(path) {
|
||||
try {
|
||||
return process.cwd();
|
||||
} catch (ex) {
|
||||
} catch {
|
||||
// getcwd(3) can fail if the current working directory has been deleted.
|
||||
// Fall back to the directory name of the (absolute) executable path.
|
||||
// It's not really correct but what are the alternatives?
|
||||
|
|
Loading…
Reference in New Issue