From 9bad23500e4aa1f167ae03b469c06b2f317e873a Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 28 Jun 2018 13:29:33 +0000 Subject: Replace DCHECKs with ASSERTs. Change-Id: I0f2bf1cb44b4cba872a719f0a75d8776f413812c Reviewed-on: https://pdfium-review.googlesource.com/36250 Commit-Queue: dsinclair Reviewed-by: dsinclair --- fxjs/cjs_global.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fxjs/cjs_global.cpp') diff --git a/fxjs/cjs_global.cpp b/fxjs/cjs_global.cpp index e9b2a4b8f0..6396aa7705 100644 --- a/fxjs/cjs_global.cpp +++ b/fxjs/cjs_global.cpp @@ -143,7 +143,7 @@ void CJS_Global::setPersistent_static( void CJS_Global::queryprop_static( v8::Local property, const v8::PropertyCallbackInfo& info) { - DCHECK(property->IsString()); + ASSERT(property->IsString()); JSSpecialPropQuery( "global", v8::Local::New(info.GetIsolate(), property->ToString()), @@ -154,7 +154,7 @@ void CJS_Global::queryprop_static( void CJS_Global::getprop_static( v8::Local property, const v8::PropertyCallbackInfo& info) { - DCHECK(property->IsString()); + ASSERT(property->IsString()); JSSpecialPropGet( "global", v8::Local::New(info.GetIsolate(), property->ToString()), @@ -166,7 +166,7 @@ void CJS_Global::putprop_static( v8::Local property, v8::Local value, const v8::PropertyCallbackInfo& info) { - DCHECK(property->IsString()); + ASSERT(property->IsString()); JSSpecialPropPut( "global", v8::Local::New(info.GetIsolate(), property->ToString()), @@ -177,7 +177,7 @@ void CJS_Global::putprop_static( void CJS_Global::delprop_static( v8::Local property, const v8::PropertyCallbackInfo& info) { - DCHECK(property->IsString()); + ASSERT(property->IsString()); JSSpecialPropDel( "global", v8::Local::New(info.GetIsolate(), property->ToString()), -- cgit v1.2.3