* Closes the file descriptor. * Note: Does not emit 'close' - the base Readable class handles that.
()
| 170 | * Note: Does not emit 'close' - the base Readable class handles that. |
| 171 | */ |
| 172 | #close() { |
| 173 | if (this.#fd !== null) { |
| 174 | try { |
| 175 | this.#vfs.closeSync(this.#fd); |
| 176 | } catch { |
| 177 | // Ignore close errors |
| 178 | } |
| 179 | this.#fd = null; |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * Implements the readable _destroy method. |