diff options
author | cjihrig <cjihrig@gmail.com> | 2018-12-24 20:10:35 +0300 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-12-26 20:25:19 +0300 |
commit | c2b4269b77822aee6d07ae427a3341abdbaa8c3f (patch) | |
tree | bdd52c57636e5d5d5fa9836599886551c267a947 /src/base_object-inl.h | |
parent | e01999db14034cb56625f40493d47b339da99048 (diff) |
src: use DCHECK_* macros where possible
PR-URL: https://github.com/nodejs/node/pull/25207
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'src/base_object-inl.h')
-rw-r--r-- | src/base_object-inl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base_object-inl.h b/src/base_object-inl.h index cce87273938..84c449a3081 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); }; |