(stream)
| 283 | } |
| 284 | |
| 285 | function willEmitClose(stream) { |
| 286 | if (!isNodeStream(stream)) return null; |
| 287 | |
| 288 | const wState = stream._writableState; |
| 289 | const rState = stream._readableState; |
| 290 | const state = wState || rState; |
| 291 | |
| 292 | return (!state && isServerResponse(stream)) || !!( |
| 293 | state?.autoDestroy && |
| 294 | state.emitClose && |
| 295 | state.closed === false |
| 296 | ); |
| 297 | } |
| 298 | |
| 299 | function isDisturbed(stream) { |
| 300 | return !!(stream && ( |
nothing calls this directly
no test coverage detected
searching dependent graphs…