Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit db014fb

Browse files
joyeecheungcodebytere
authored andcommittedJan 13, 2019
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 e77a4c6 commit db014fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/internal/process/stdio.js

+1-1
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)
Please sign in to comment.