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

Function badSource

test/parallel/test-stream-iter-pipeto-edge.js:41–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 fail() { failCalled = true; },
40 };
41 function* badSource() {
42 yield [new Uint8Array([1])];
43 throw new Error('source error');
44 }
45 assert.throws(
46 () => pipeToSync(badSource(), writer, { preventFail: true }),
47 { message: 'source error' },

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected