MCPcopy Index your code
hub / github.com/nodejs/node / failingSource

Function failingSource

test/parallel/test-stream-iter-pipeto.js:57–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 fail(reason) { failCalled = true; failReason = reason; },
56 };
57 async function* failingSource() {
58 yield [new TextEncoder().encode('a')];
59 throw new Error('pipe source boom');
60 }
61 await assert.rejects(
62 () => pipeTo(failingSource(), writer),
63 { message: 'pipe source boom' },

Callers 3

testPipeToSourceErrorFunction · 0.70
testPipeToPreventFailFunction · 0.70

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…