James M Snell committed 2020-05-06 07:56:47 -07:00
1 parent 120d7076d5
commit 1dc006ef19
1 file changed
+3 -1
+3 -1
View File
@@ -4,6 +4,7 @@
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#include "async_wrap-inl.h"
#include "base_object-inl.h"
#include "node.h"
#include "stream_base.h"
#include "v8.h"
@@ -31,9 +32,10 @@ StreamReq* StreamReq::FromObject(v8::Local<v8::Object> req_wrap_obj) {
}
void StreamReq::Dispose() {
std::unique_ptr<StreamReq> ptr(this);
BaseObjectPtr<AsyncWrap> destroy_me{GetAsyncWrap()};
object()->SetAlignedPointerInInternalField(
StreamReq::kStreamReqField, nullptr);
destroy_me->Detach();
}
v8::Local<v8::Object> StreamReq::object() {