(controller)
| 144 | const writable = new Stream.PassThrough(); |
| 145 | const readable = new ReadableStream({ |
| 146 | start(controller) { |
| 147 | writable.on('data', chunk => { |
| 148 | controller.enqueue(chunk); |
| 149 | }); |
| 150 | writable.on('end', () => { |
| 151 | controller.close(); |
| 152 | }); |
| 153 | }, |
| 154 | }); |
| 155 | return { |
| 156 | readable, |