()
| 5813 | iterator = action(object)[Symbol.asyncIterator](); |
| 5814 | }); |
| 5815 | }, |
| 5816 | pull(controller) { |
| 5817 | return __async(this, null, function* () { |
| 5818 | const { value, done } = yield iterator.next(); |
| 5819 | if (done) { |
| 5820 | queueMicrotask(() => { |
| 5821 | var _a; |
| 5822 | controller.close(); |
| 5823 | (_a = controller.byobRequest) == null ? void 0 : _a.respond(0); |
| 5824 | }); |
| 5825 | } else { |
| 5826 | if (!isErrored(stream)) { |
| 5827 | const buffer = new Uint8Array(value); |
| 5828 | if (buffer.byteLength) { |
| 5829 | controller.enqueue(buffer); |
| 5830 | } |
| 5831 | } |
| 5832 | } |
| 5833 | return controller.desiredSize > 0; |
| 5834 | }); |
| 5835 | }, |
| 5836 | cancel(reason) { |
| 5837 | return __async(this, null, function* () { |
| 5838 | yield iterator.return(); |
| 5839 | }); |
| 5840 | }, |
| 5841 | type: "bytes" |
| 5842 | }); |
| 5843 | } |
| 5844 | const body = { stream, source, length }; |
| 5845 | return [body, type]; |
| 5846 | } |
nothing calls this directly
no test coverage detected