MCPcopy Create free account
hub / github.com/nodejs/node / failingSource

Function failingSource

test/parallel/test-stream-iter-share-sync.js:128–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126
127function testShareSyncSourceError() {
128 function* failingSource() {
129 yield [new TextEncoder().encode('ok')];
130 throw new Error('sync share boom');
131 }
132 const shared = shareSync(failingSource());
133 const c1 = shared.pull();
134 const c2 = shared.pull();

Callers 1

testShareSyncSourceErrorFunction · 0.70

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected