()
| 58 | } |
| 59 | |
| 60 | async function testPullChainedTransforms() { |
| 61 | const enc = new TextEncoder(); |
| 62 | const transforms = [ |
| 63 | (chunks) => { |
| 64 | if (chunks === null) return null; |
| 65 | return [...chunks, enc.encode('!')]; |
| 66 | }, |
| 67 | (chunks) => { |
| 68 | if (chunks === null) return null; |
| 69 | return [...chunks, enc.encode('?')]; |
| 70 | }, |
| 71 | ]; |
| 72 | const data = await text(pull(from('hello'), ...transforms)); |
| 73 | assert.strictEqual(data, 'hello!?'); |
| 74 | } |
| 75 | |
| 76 | // Source error → controller.abort() → transform listener throws → |
| 77 | // source error propagates to consumer; listener error becomes uncaught |
no test coverage detected