(self)
| 131 | } |
| 132 | |
| 133 | function emitCloseNT(self) { |
| 134 | const r = self._readableState; |
| 135 | const w = self._writableState; |
| 136 | |
| 137 | if (w) { |
| 138 | w[kState] |= kCloseEmitted; |
| 139 | } |
| 140 | if (r) { |
| 141 | r[kState] |= kCloseEmitted; |
| 142 | } |
| 143 | |
| 144 | if ( |
| 145 | (w && (w[kState] & kEmitClose) !== 0) || |
| 146 | (r && (r[kState] & kEmitClose) !== 0) |
| 147 | ) { |
| 148 | self.emit('close'); |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | function emitErrorNT(self, err) { |
| 153 | const r = self._readableState; |
no test coverage detected