Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ccf29cd

Browse filesBrowse files
ri7116richardlau
authored andcommitted
Revert "lib: optimize writable stream buffer clearing"
This reverts commit 8a2fec1. PR-URL: #59743 Reviewed-By: Mattias Buelens <mattias@buelens.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
1 parent aed1b88 commit ccf29cd
Copy full SHA for ccf29cd

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎lib/internal/streams/writable.js‎

Copy file name to clipboardExpand all lines: lib/internal/streams/writable.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ function clearBuffer(stream, state) {
786786
if (i === buffered.length) {
787787
resetBuffer(state);
788788
} else if (i > 256) {
789-
state[kBufferedValue] = ArrayPrototypeSlice(buffered, i);
789+
buffered.splice(0, i);
790790
state.bufferedIndex = 0;
791791
} else {
792792
state.bufferedIndex = i;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.