* Throws EBADF if the handle was not opened for writing.
()
| 403 | * Throws EBADF if the handle was not opened for writing. |
| 404 | */ |
| 405 | #checkWritable() { |
| 406 | if (this.flags === 'r') { |
| 407 | throw createEBADF('write'); |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | /** |
| 412 | * Throws EBADF if the handle was not opened for reading. |
no test coverage detected