Skip to content

Commit c691e56

Browse files
committed
fixup
1 parent 8512ac6 commit c691e56

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/internal/streams/readable.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,11 @@ ObjectDefineProperties(ReadableState.prototype, {
15281528
},
15291529
set(value) {
15301530
this[kState] |= kHasPaused;
1531-
this[kState] &= ~kPaused;
1531+
if (value) {
1532+
this[kState] |= kPaused;
1533+
} else {
1534+
this[kState] &= ~kPaused;
1535+
}
15321536
},
15331537
},
15341538
});

0 commit comments

Comments
 (0)