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 62a5679

Browse filesBrowse files
joyeecheungcodebytere
authored andcommitted
lib: set stderr._destroy to dummyDestroy
This seems to be typo: we are setting stdout._destroy instead of stderr._destroy in the getter of stderr. PR-URL: #24398 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent bf3bed5 commit 62a5679
Copy full SHA for 62a5679

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/process/stdio.js‎

Copy file name to clipboardExpand all lines: lib/internal/process/stdio.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function getMainThreadStdio() {
3232
stderr = createWritableStdioStream(2);
3333
stderr.destroySoon = stderr.destroy;
3434
// Override _destroy so that the fd is never actually closed.
35-
stdout._destroy = dummyDestroy;
35+
stderr._destroy = dummyDestroy;
3636
if (stderr.isTTY) {
3737
process.on('SIGWINCH', () => stderr._refreshSize());
3838
}

0 commit comments

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