fix: check DCHECK_IS_ON() instead of #ifdef DCHECK_IS_ON (#29620)

This commit is contained in:
Jeremy Rose 2021-06-13 19:06:09 -07:00 committed by GitHub
parent fed5ad5303
commit 34a4e26b24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 8 deletions

View file

@ -723,7 +723,7 @@ void Initialize(v8::Local<v8::Object> exports,
&electron::api::OverrideGlobalPropertyFromIsolatedWorld);
dict.SetMethod("_isCalledFromMainWorld",
&electron::api::IsCalledFromMainWorld);
#ifdef DCHECK_IS_ON
#if DCHECK_IS_ON()
dict.Set("_isDebug", true);
#endif
}