diff options
author | Trevor Norris <trev.norris@gmail.com> | 2017-04-11 16:29:39 -0600 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-05-10 22:21:53 +0200 |
commit | 4b9d84df51f7c1d879e27f651cd84de4cb46e229 (patch) | |
tree | b83ff35d2e68163ee018d5794713a67b5816e66b /src/tty_wrap.h | |
parent | dd6e3f69a795a0ab1a27c5709869d00460f12a0d (diff) | |
download | node-new-4b9d84df51f7c1d879e27f651cd84de4cb46e229.tar.gz |
tty_wrap: throw when uv_tty_init() returns error
Also add checks in lib/tty.js and tests.
PR-URL: https://github.com/nodejs/node/pull/12892
Ref: https://github.com/nodejs/node/pull/11883
Ref: https://github.com/nodejs/node/pull/8531
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'src/tty_wrap.h')
-rw-r--r-- | src/tty_wrap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tty_wrap.h b/src/tty_wrap.h index 8eadbf0a9f..7b7cb5ece8 100644 --- a/src/tty_wrap.h +++ b/src/tty_wrap.h @@ -44,7 +44,8 @@ class TTYWrap : public StreamWrap { TTYWrap(Environment* env, v8::Local<v8::Object> object, int fd, - bool readable); + bool readable, + int* init_err); static void GuessHandleType(const v8::FunctionCallbackInfo<v8::Value>& args); static void IsTTY(const v8::FunctionCallbackInfo<v8::Value>& args); |