* Synchronously closes the file descriptor. * @param {number} fd * @returns {void}
(fd)
| 634 | * @returns {void} |
| 635 | */ |
| 636 | function closeSync(fd) { |
| 637 | const h = vfsState.handlers; |
| 638 | if (h !== null) { |
| 639 | const result = h.closeSync(fd); |
| 640 | if (result !== undefined) return; |
| 641 | } |
| 642 | binding.close(fd); |
| 643 | } |
| 644 | |
| 645 | /** |
| 646 | * Asynchronously opens a file. |
no test coverage detected
searching dependent graphs…