| 16649 | Duplex.prototype[j] || (Duplex.prototype[j] = w.prototype[j]) |
| 16650 | } |
| 16651 | function Duplex(s) { |
| 16652 | if (!(this instanceof Duplex)) return new Duplex(s) |
| 16653 | ;(_.call(this, s), |
| 16654 | w.call(this, s), |
| 16655 | (this.allowHalfOpen = !0), |
| 16656 | s && |
| 16657 | (!1 === s.readable && (this.readable = !1), |
| 16658 | !1 === s.writable && (this.writable = !1), |
| 16659 | !1 === s.allowHalfOpen && ((this.allowHalfOpen = !1), this.once('end', onend)))) |
| 16660 | } |
| 16661 | function onend() { |
| 16662 | this._writableState.ended || a.nextTick(onEndNT, this) |
| 16663 | } |