diff options
author | Robert Nagy <ronagy@icloud.com> | 2020-07-15 22:44:10 +0300 |
---|---|---|
committer | Robert Nagy <ronagy@icloud.com> | 2021-07-02 23:11:16 +0300 |
commit | 954217adda03457115e426e9126dcad845877f74 (patch) | |
tree | 5f278968722de533049e71296c9e0859e5dcc2c2 /src/tty_wrap.h | |
parent | 1544e69b93565c97e7ed232bf2db237d34b8fd7c (diff) |
stream: error Duplex write/read if not writable/readable
If writable/readable has been explicitly disabled then using
a Duplex as writable/readable should fail.
Fixes: https://github.com/nodejs/node/issues/34374
PR-URL: https://github.com/nodejs/node/pull/34385
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/tty_wrap.h')
-rw-r--r-- | src/tty_wrap.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tty_wrap.h b/src/tty_wrap.h index fdf07e4242c..84e1fbb74d3 100644 --- a/src/tty_wrap.h +++ b/src/tty_wrap.h @@ -46,7 +46,6 @@ class TTYWrap : public LibuvStreamWrap { TTYWrap(Environment* env, v8::Local<v8::Object> object, int fd, - bool readable, int* init_err); static void IsTTY(const v8::FunctionCallbackInfo<v8::Value>& args); |