(fd)
| 351 | |
| 352 | openSync: (path, flags, mode) => vfsOp(path, (vfs, n) => vfs.openSync(n, flags, mode)), |
| 353 | closeSync(fd) { |
| 354 | const vfd = getVirtualFd(fd); |
| 355 | if (vfd) { vfd.entry.closeSync(); closeVirtualFd(fd); return true; } |
| 356 | return undefined; |
| 357 | }, |
| 358 | readSync(fd, buffer, offset, length, position) { |
| 359 | const vfd = getVirtualFd(fd); |
| 360 | if (vfd) return vfd.entry.readSync(buffer, offset, length, position); |
no test coverage detected
searching dependent graphs…