Skip to content

Commit b6bb531

Browse files
authored
Update lib/internal/streams/writable.js
1 parent 757f3bf commit b6bb531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/streams/writable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ ObjectDefineProperties(WritableState.prototype, {
277277
enumerable: false,
278278
get() { return (this.state & kBuffered) !== 0 ? this[kBufferedValue] : []; },
279279
set(value) {
280+
this[kBufferedValue] = value;
280281
if (value) {
281-
this[kBufferedValue] = value;
282282
this.state |= kBuffered;
283283
} else {
284284
this.state &= ~kBuffered;

0 commit comments

Comments
 (0)