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

Function tryStatSync

lib/fs.js:438–444  ·  view source on GitHub ↗
(fd, isUserFd)

Source from the content-addressed store, hash-verified

436}
437
438function tryStatSync(fd, isUserFd) {
439 const stats = binding.fstat(fd, false, undefined, true /* shouldNotThrow */);
440 if (stats === undefined && !isUserFd) {
441 fs.closeSync(fd);
442 }
443 return stats;
444}
445
446function tryCreateBuffer(size, fd, isUserFd) {
447 let threw = true;

Callers 1

readFileSyncFunction · 0.85

Calls 2

fstatMethod · 0.80
closeSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…