diff options
author | Jon Moss <me@jonathanmoss.me> | 2018-12-18 23:52:09 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-03-08 11:25:30 +0300 |
commit | 4697e1b0d792f50863bbbcad25a95b84e6746501 (patch) | |
tree | ec352361e56956176ca5831c092703d36cd929c6 /src/tcp_wrap.cc | |
parent | 254635198ab1e6afed357c1884c1ef75eb3b8486 (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/tcp_wrap.cc')
-rw-r--r-- | src/tcp_wrap.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc index 43c6ea5958f..af9806e4889 100644 --- a/src/tcp_wrap.cc +++ b/src/tcp_wrap.cc @@ -79,7 +79,8 @@ void TCPWrap::Initialize(Local<Object> target, Local<FunctionTemplate> t = env->NewFunctionTemplate(New); Local<String> tcpString = FIXED_ONE_BYTE_STRING(env->isolate(), "TCP"); t->SetClassName(tcpString); - t->InstanceTemplate()->SetInternalFieldCount(1); + t->InstanceTemplate() + ->SetInternalFieldCount(StreamBase::kStreamBaseField + 1); // Init properties t->InstanceTemplate()->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "reading"), |