FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

stream: micro-optimize writable condition · nodejs/node@a66dd43 · GitHub

/ node Public

Commit a66dd43

Browse files
committed
stream: micro-optimize writable condition
1 parent f883865 commit a66dd43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/internal/streams/writable.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,8 +1004,8 @@ ObjectDefineProperties(Writable.prototype, {
10041004
// where the writable side was disabled upon construction.
10051005
// Compat. The user might manually disable writable side through
10061006
// deprecated setter.
1007-
return !!w && w.writable !== false && !w.errored &&
1008-
(w[kState] & (kEnding | kEnded | kDestroyed)) === 0;
1007+
return !!w && w.writable !== false &&
1008+
(w[kState] & (kEnding | kEnded | kDestroyed | kErrored)) === 0;
10091009
},
10101010
set(val) {
10111011
// Backwards compatible.

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL