(status)
| 973 | } |
| 974 | |
| 975 | function onWriteComplete(status) { |
| 976 | if (status < 0) { |
| 977 | const error = new ErrnoException(status, 'write', this.error); |
| 978 | this.promise.reject(error); |
| 979 | this.controller.error(error); |
| 980 | return; |
| 981 | } |
| 982 | this.promise.resolve(); |
| 983 | } |
| 984 | |
| 985 | function doWrite(chunk, controller) { |
| 986 | const promise = PromiseWithResolvers(); |