(options)
| 24086 | } |
| 24087 | |
| 24088 | function Duplex(options) { |
| 24089 | if (!(this instanceof Duplex)) return new Duplex(options); |
| 24090 | |
| 24091 | Readable.call(this, options); |
| 24092 | Writable.call(this, options); |
| 24093 | |
| 24094 | if (options && options.readable === false) this.readable = false; |
| 24095 | |
| 24096 | if (options && options.writable === false) this.writable = false; |
| 24097 | |
| 24098 | this.allowHalfOpen = true; |
| 24099 | if (options && options.allowHalfOpen === false) this.allowHalfOpen = false; |
| 24100 | |
| 24101 | this.once('end', onend); |
| 24102 | } |
| 24103 | |
| 24104 | // the no-half-open enforcer |
| 24105 | function onend() { |
nothing calls this directly
no outgoing calls
no test coverage detected