diff --git a/lib/internal/streams/writable.js b/lib/internal/streams/writable.js index 8dc865a76d4c32..ede9c3efd225cd 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.