summaryrefslogtreecommitdiff
path: root/src/tty_wrap.cc
diff options
context:
space:
mode:
authorBen Schmidt <insightfuls@users.noreply.github.com>2016-07-19 13:50:27 +1000
committerAnna Henningsen <anna@addaleax.net>2017-02-28 18:44:05 +0100
commit3c92200d8b5b40c86e69b07d87551c55070c96a5 (patch)
treea34723079c807e2c73692ce09ff84c681b7326ce /src/tty_wrap.cc
parentd08836003c579b7321284e8256829ff17a8b4afe (diff)
downloadandroid-node-v8-3c92200d8b5b40c86e69b07d87551c55070c96a5.tar.gz
android-node-v8-3c92200d8b5b40c86e69b07d87551c55070c96a5.tar.bz2
android-node-v8-3c92200d8b5b40c86e69b07d87551c55070c96a5.zip
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.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc
index 26f061b99b..5b75183247 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);