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

Function readableByteStreamControllerError

lib/internal/webstreams/readablestream.js:3367–3377  ·  view source on GitHub ↗
(controller, error)

Source from the content-addressed store, hash-verified

3365}
3366
3367function readableByteStreamControllerError(controller, error) {
3368 const {
3369 stream,
3370 } = controller[kState];
3371 if (stream[kState].state !== 'readable')
3372 return;
3373 readableByteStreamControllerClearPendingPullIntos(controller);
3374 resetQueue(controller);
3375 readableByteStreamControllerClearAlgorithms(controller);
3376 readableStreamError(stream, error);
3377}
3378
3379function readableByteStreamControllerCancelSteps(controller, reason) {
3380 readableByteStreamControllerClearPendingPullIntos(controller);

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…