diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2018-11-17 01:44:34 +0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-11-18 18:26:09 -0800 |
commit | 71f4d5abfa4dcc9b0aa2d17a80213eecfc4a911b (patch) | |
tree | 632a86f5a47d87e342da455b5e2f86f1c0df00ac /lib | |
parent | 1b75b81649335a32912c3913b5afb5833c8a1602 (diff) | |
download | android-node-v8-71f4d5abfa4dcc9b0aa2d17a80213eecfc4a911b.tar.gz android-node-v8-71f4d5abfa4dcc9b0aa2d17a80213eecfc4a911b.tar.bz2 android-node-v8-71f4d5abfa4dcc9b0aa2d17a80213eecfc4a911b.zip |
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: https://github.com/nodejs/node/pull/24398
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/internal/process/stdio.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/process/stdio.js b/lib/internal/process/stdio.js index 826a2a9916..b769ea2bca 100644 --- a/lib/internal/process/stdio.js +++ b/lib/internal/process/stdio.js @@ -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()); } |