From b4e074c29516e1c9cb4c97dc659d45f91876c339 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Tue, 31 Aug 2021 23:18:34 +0800 Subject: [PATCH] src: register missing stream wrap external references PR-URL: https://github.com/nodejs/node/pull/39961 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Michael Dawson --- src/stream_wrap.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc index 78d20f912b4cdb..2275167ad0eeb6 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -106,6 +106,10 @@ void LibuvStreamWrap::Initialize(Local target, void LibuvStreamWrap::RegisterExternalReferences( ExternalReferenceRegistry* registry) { registry->Register(IsConstructCallCallback); + registry->Register(GetWriteQueueSize); + registry->Register(SetBlocking); + // TODO(joyee): StreamBase::RegisterExternalReferences() is called somewhere + // else but we may want to do it here too and guard it with a static flag. } LibuvStreamWrap::LibuvStreamWrap(Environment* env,