Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Nagy <ronagy@icloud.com>2020-07-15 22:44:10 +0300
committerRobert Nagy <ronagy@icloud.com>2021-07-02 23:11:16 +0300
commit954217adda03457115e426e9126dcad845877f74 (patch)
tree5f278968722de533049e71296c9e0859e5dcc2c2 /src/tty_wrap.h
parent1544e69b93565c97e7ed232bf2db237d34b8fd7c (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.h1
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);