diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js index 6b5f1f7f8e5..4764a340b76 100644 --- a/lib/internal/bootstrap/node.js +++ b/lib/internal/bootstrap/node.js @@ -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?