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

Function failingSource

test/parallel/test-stream-iter-share-async.js:216–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214
215async function testShareSourceError() {
216 async function* failingSource() {
217 yield [new TextEncoder().encode('a')];
218 throw new Error('share source boom');
219 }
220 const shared = share(failingSource());
221 const c1 = shared.pull();
222 const c2 = shared.pull();

Callers 1

testShareSourceErrorFunction · 0.70

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected