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

Method error

lib/internal/webstreams/readablestream.js:1284–1288  ·  view source on GitHub ↗

* @param {any} [error]

(error = undefined)

Source from the content-addressed store, hash-verified

1282 * @param {any} [error]
1283 */
1284 error(error = undefined) {
1285 if (!isReadableByteStreamController(this))
1286 throw new ERR_INVALID_THIS('ReadableByteStreamController');
1287 readableByteStreamControllerError(this, error);
1288 }
1289
1290 [kCancel](reason) {
1291 return readableByteStreamControllerCancelSteps(this, reason);

Callers 6

onWriteCompleteFunction · 0.45
writeFunction · 0.45

Calls 1

Tested by

no test coverage detected