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

Function failingSource

test/parallel/test-stream-iter-pull-sync.js:63–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61// PullSync source error propagates
62function testPullSyncSourceError() {
63 function* failingSource() {
64 yield [new TextEncoder().encode('a')];
65 throw new Error('sync source boom');
66 }
67 assert.throws(() => {
68 // eslint-disable-next-line no-unused-vars
69 for (const _ of pullSync(failingSource())) { /* consume */ }

Callers 1

testPullSyncSourceErrorFunction · 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…