diff --git a/lib/internal/streams/writable.js b/lib/internal/streams/writable.js index 38f1cbadd39d1d..9f6fa4936dca62 100644 --- a/lib/internal/streams/writable.js +++ b/lib/internal/streams/writable.js @@ -1005,8 +1005,8 @@ ObjectDefineProperties(Writable.prototype, { // where the writable side was disabled upon construction. // Compat. The user might manually disable writable side through // deprecated setter. - return !!w && w.writable !== false && !w.errored && - (w[kState] & (kEnding | kEnded | kDestroyed)) === 0; + return !!w && w.writable !== false && + (w[kState] & (kEnding | kEnded | kDestroyed | kErrored)) === 0; }, set(val) { // Backwards compatible.