summaryrefslogtreecommitdiff
path: root/src/stream_base-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream_base-inl.h')
-rw-r--r--src/stream_base-inl.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/stream_base-inl.h b/src/stream_base-inl.h
index 1d6ec17b80..7e2bbaa173 100644
--- a/src/stream_base-inl.h
+++ b/src/stream_base-inl.h
@@ -448,9 +448,8 @@ inline void StreamReq::Done(int status, const char* error_str) {
}
inline void StreamReq::ResetObject(v8::Local<v8::Object> obj) {
-#ifdef DEBUG
- CHECK_GT(obj->InternalFieldCount(), StreamReq::kStreamReqField);
-#endif
+ DCHECK_GT(obj->InternalFieldCount(), StreamReq::kStreamReqField);
+
obj->SetAlignedPointerInInternalField(0, nullptr); // BaseObject field.
obj->SetAlignedPointerInInternalField(StreamReq::kStreamReqField, nullptr);
}