MCPcopy Index your code
hub / github.com/nodejs/node / safeGetCWD

Function safeGetCWD

lib/internal/util/inspect.js:1923–1931  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1921}
1922
1923function safeGetCWD() {
1924 let workingDirectory;
1925 try {
1926 workingDirectory = process.cwd();
1927 } catch {
1928 return;
1929 }
1930 return workingDirectory;
1931}
1932
1933function formatError(err, constructor, tag, ctx, keys) {
1934 let message, name, stack;

Callers 1

formatErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…