summaryrefslogtreecommitdiff
path: root/src/base_object-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/base_object-inl.h')
-rw-r--r--src/base_object-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base_object-inl.h b/src/base_object-inl.h
index cce8727393..84c449a308 100644
--- a/src/base_object-inl.h
+++ b/src/base_object-inl.h
@@ -115,8 +115,8 @@ BaseObject::MakeLazilyInitializedJSTemplate(Environment* env) {
auto constructor = [](const v8::FunctionCallbackInfo<v8::Value>& args) {
#ifdef DEBUG
CHECK(args.IsConstructCall());
- CHECK_GT(args.This()->InternalFieldCount(), 0);
#endif
+ DCHECK_GT(args.This()->InternalFieldCount(), 0);
args.This()->SetAlignedPointerInInternalField(0, nullptr);
};