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

Function testTapSyncCallbackError

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

Source from the content-addressed store, hash-verified

79
80// TapSync callback error propagates
81function testTapSyncCallbackError() {
82 const badTap = tapSync(() => { throw new Error('tapSync boom'); });
83 assert.throws(() => {
84 // eslint-disable-next-line no-unused-vars
85 for (const _ of pullSync(fromSync('hello'), badTap)) { /* consume */ }
86 }, { message: 'tapSync boom' });
87}
88
89// Stateless transform error propagates
90function testPullSyncStatelessTransformError() {

Callers 1

Calls 3

tapSyncFunction · 0.85
pullSyncFunction · 0.85
fromSyncFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…