diff options
author | Ben Schmidt <insightfuls@users.noreply.github.com> | 2016-07-19 06:50:27 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-02-28 20:44:05 +0300 |
commit | 3c92200d8b5b40c86e69b07d87551c55070c96a5 (patch) | |
tree | a34723079c807e2c73692ce09ff84c681b7326ce /src/tty_wrap.cc | |
parent | d08836003c579b7321284e8256829ff17a8b4afe (diff) |
tty: add ref() so process.stdin.ref() etc. work
Also squashed from:
* test: move tty-wrap isrefed test to pseudo-tty/
* test: test tty-wrap handle isrefed properly
* test: improve failure messages in isrefed tests
PR-URL: https://github.com/nodejs/node/pull/7360
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: James M Snell <jasnell.gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'src/tty_wrap.cc')
-rw-r--r-- | src/tty_wrap.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc index 26f061b99b3..5b751832477 100644 --- a/src/tty_wrap.cc +++ b/src/tty_wrap.cc @@ -34,6 +34,7 @@ void TTYWrap::Initialize(Local<Object> target, env->SetProtoMethod(t, "close", HandleWrap::Close); env->SetProtoMethod(t, "unref", HandleWrap::Unref); + env->SetProtoMethod(t, "ref", HandleWrap::Ref); env->SetProtoMethod(t, "hasRef", HandleWrap::HasRef); StreamWrap::AddMethods(env, t, StreamBase::kFlagNoShutdown); |