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

Function isReadableErrored

lib/internal/streams/utils.js:223–233  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

221}
222
223function isReadableErrored(stream) {
224 if (!isNodeStream(stream)) {
225 return null;
226 }
227
228 if (stream.readableErrored) {
229 return stream.readableErrored;
230 }
231
232 return stream._readableState?.errored ?? null;
233}
234
235function isClosed(stream) {
236 if (!isNodeStream(stream)) {

Callers 1

getEosErroredFunction · 0.85

Calls 1

isNodeStreamFunction · 0.85

Tested by

no test coverage detected