(controller)
| 11605 | return descriptor; |
| 11606 | } |
| 11607 | function ReadableByteStreamControllerShouldCallPull(controller) { |
| 11608 | const stream4 = controller._controlledReadableByteStream; |
| 11609 | if (stream4._state !== "readable") { |
| 11610 | return false; |
| 11611 | } |
| 11612 | if (controller._closeRequested) { |
| 11613 | return false; |
| 11614 | } |
| 11615 | if (!controller._started) { |
| 11616 | return false; |
| 11617 | } |
| 11618 | if (ReadableStreamHasDefaultReader(stream4) && ReadableStreamGetNumReadRequests(stream4) > 0) { |
| 11619 | return true; |
| 11620 | } |
| 11621 | if (ReadableStreamHasBYOBReader(stream4) && ReadableStreamGetNumReadIntoRequests(stream4) > 0) { |
| 11622 | return true; |
| 11623 | } |
| 11624 | const desiredSize = ReadableByteStreamControllerGetDesiredSize(controller); |
| 11625 | if (desiredSize > 0) { |
| 11626 | return true; |
| 11627 | } |
| 11628 | return false; |
| 11629 | } |
| 11630 | function ReadableByteStreamControllerClearAlgorithms(controller) { |
| 11631 | controller._pullAlgorithm = void 0; |
| 11632 | controller._cancelAlgorithm = void 0; |
no test coverage detected
searching dependent graphs…