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

Function failingSource

test/parallel/test-stream-iter-pull-async.js:95–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 };
94
95 async function* failingSource() {
96 yield [new TextEncoder().encode('a')];
97 throw new Error('source error');
98 }
99
100 await assert.rejects(
101 async () => {

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected