From 340b770d3f4c3b50a5d36c0776afd63d9b4f22de Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Sat, 13 Nov 2021 14:42:30 +0200 Subject: [PATCH] stream: unify writableErrored and readableErrored Both of these should always refer to the same error, hence there is no reason to separate them. PR-URL: https://github.com/nodejs/node/pull/40799 Refs: https://github.com/nodejs/node/pull/40696 Reviewed-By: Luigi Pinca Reviewed-By: Matteo Collina Reviewed-By: James M Snell --- doc/api/stream.md | 4 ++-- lib/internal/streams/readable.js | 2 +- lib/internal/streams/writable.js | 2 +- test/parallel/test-stream-finished.js | 4 ++-- test/parallel/test-stream-readable-destroy.js | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index c20afc5f8dce25..4f242a5d519da2 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -633,7 +633,7 @@ added: Number of times [`writable.uncork()`][stream-uncork] needs to be called in order to fully uncork the stream. -##### `writable.writableErrored` +##### `writable.errored`