(instance, body)
| 5775 | return [body, type]; |
| 5776 | } |
| 5777 | function safelyExtractBody(object, keepalive = false) { |
| 5778 | if (object instanceof ReadableStream) { |
| 5779 | assert(!util.isDisturbed(object), "The body has already been consumed."); |
| 5780 | assert(!object.locked, "The stream is locked."); |
| 5781 | } |
| 5782 | return extractBody(object, keepalive); |
| 5783 | } |
| 5784 | function cloneBody(instance, body) { |
| 5785 | const [out1, out2] = body.stream.tee(); |
| 5786 | body.stream = out1; |
| 5787 | return { |
| 5788 | stream: out2, |
no outgoing calls
no test coverage detected