()
| 5979 | |
| 5980 | // the no-half-open enforcer |
| 5981 | function onend() { |
| 5982 | // if we allow half-open state, or if the writable side ended, |
| 5983 | // then we're ok. |
| 5984 | if (this.allowHalfOpen || this._writableState.ended) return; |
| 5985 | |
| 5986 | // no more data can be written. |
| 5987 | // But allow more writes to happen in this tick. |
| 5988 | pna.nextTick(onEndNT, this); |
| 5989 | } |
| 5990 | |
| 5991 | function onEndNT(self) { |
| 5992 | self.end(); |
nothing calls this directly
no test coverage detected
searching dependent graphs…