We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09e2191 commit d02651cCopy full SHA for d02651c
lib/internal/streams/writable.js
@@ -1005,8 +1005,8 @@ ObjectDefineProperties(Writable.prototype, {
1005
// where the writable side was disabled upon construction.
1006
// Compat. The user might manually disable writable side through
1007
// deprecated setter.
1008
- return !!w && w.writable !== false && !w.errored &&
1009
- (w[kState] & (kEnding | kEnded | kDestroyed)) === 0;
+ return !!w && w.writable !== false &&
+ (w[kState] & (kEnding | kEnded | kDestroyed | kErrored)) === 0;
1010
},
1011
set(val) {
1012
// Backwards compatible.
0 commit comments