* Throws EBADF if the handle was not opened for reading.
()
| 412 | * Throws EBADF if the handle was not opened for reading. |
| 413 | */ |
| 414 | #checkReadable() { |
| 415 | const f = this.flags; |
| 416 | if (f === 'w' || f === 'a' || f === 'wx' || f === 'ax') { |
| 417 | throw createEBADF('read'); |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | /** |
| 422 | * Returns true if this handle was opened in append mode. |
no test coverage detected