(fd, isUserFd)
| 436 | } |
| 437 | |
| 438 | function 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 | |
| 446 | function tryCreateBuffer(size, fd, isUserFd) { |
| 447 | let threw = true; |
no test coverage detected
searching dependent graphs…