From c2b4269b77822aee6d07ae427a3341abdbaa8c3f Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 24 Dec 2018 12:10:35 -0500 Subject: src: use DCHECK_* macros where possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/25207 Reviewed-By: Michaël Zasso Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca --- src/base_object-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base_object-inl.h') 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& args) { #ifdef DEBUG CHECK(args.IsConstructCall()); - CHECK_GT(args.This()->InternalFieldCount(), 0); #endif + DCHECK_GT(args.This()->InternalFieldCount(), 0); args.This()->SetAlignedPointerInInternalField(0, nullptr); }; -- cgit v1.2.3