Skip to content

Commit

Permalink
lib: set stderr._destroy to dummyDestroy
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
joyeecheung authored and codebytere committed Jan 29, 2019
1 parent bf3bed5 commit 62a5679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/process/stdio.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function getMainThreadStdio() {
stderr = createWritableStdioStream(2);
stderr.destroySoon = stderr.destroy;
// Override _destroy so that the fd is never actually closed.
stdout._destroy = dummyDestroy;
stderr._destroy = dummyDestroy;
if (stderr.isTTY) {
process.on('SIGWINCH', () => stderr._refreshSize());
}
Expand Down

0 comments on commit 62a5679

Please sign in to comment.