Skip to content

Commit fb06325

Browse files
committed
fixup! stream: use Buffer.ByteLength() to get the string length
1 parent 5e59e20 commit fb06325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/streams/writable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ function errorBuffer(state) {
724724

725725
if ((state[kState] & kBuffered) !== 0) {
726726
for (let n = state.bufferedIndex; n < state.buffered.length; ++n) {
727-
const { chunk, length, callback } = state[kBufferedValue][n];
727+
const { length, callback } = state[kBufferedValue][n];
728728
const len = (state[kState] & kObjectMode) !== 0 ? 1 : length;
729729
state.length -= len;
730730
callback(state.errored ?? new ERR_STREAM_DESTROYED('write'));

0 commit comments

Comments
 (0)