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:
authorJon Moss <me@jonathanmoss.me>2018-12-18 23:52:09 +0300
committerAnna Henningsen <anna@addaleax.net>2019-03-08 11:25:30 +0300
commit4697e1b0d792f50863bbbcad25a95b84e6746501 (patch)
treeec352361e56956176ca5831c092703d36cd929c6 /src/tty_wrap.cc
parent254635198ab1e6afed357c1884c1ef75eb3b8486 (diff)
src: remove templating from StreamBase
PR-URL: https://github.com/nodejs/node/pull/25142 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/tty_wrap.cc')
-rw-r--r--src/tty_wrap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc
index 7b8a7ed2274..423f53c014d 100644
--- a/src/tty_wrap.cc
+++ b/src/tty_wrap.cc
@@ -51,7 +51,8 @@ void TTYWrap::Initialize(Local<Object> target,
Local<FunctionTemplate> t = env->NewFunctionTemplate(New);
t->SetClassName(ttyString);
- t->InstanceTemplate()->SetInternalFieldCount(1);
+ t->InstanceTemplate()
+ ->SetInternalFieldCount(StreamBase::kStreamBaseField + 1);
t->Inherit(LibuvStreamWrap::GetConstructorTemplate(env));
env->SetProtoMethodNoSideEffect(t, "getWindowSize", TTYWrap::GetWindowSize);