summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-06-28 13:29:33 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-28 13:29:33 +0000
commit9bad23500e4aa1f167ae03b469c06b2f317e873a (patch)
treedf3d6cd8a0da74646344149f4965fb94ac8758bb /fxjs
parent774c90d5ec92d2c58d821c445230d8cb71928dcb (diff)
downloadpdfium-9bad23500e4aa1f167ae03b469c06b2f317e873a.tar.xz
Replace DCHECKs with ASSERTs.
Change-Id: I0f2bf1cb44b4cba872a719f0a75d8776f413812c Reviewed-on: https://pdfium-review.googlesource.com/36250 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cjs_global.cpp8
1 files changed, 4 insertions, 4 deletions
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<v8::Name> property,
const v8::PropertyCallbackInfo<v8::Integer>& info) {
- DCHECK(property->IsString());
+ ASSERT(property->IsString());
JSSpecialPropQuery<CJS_Global>(
"global",
v8::Local<v8::String>::New(info.GetIsolate(), property->ToString()),
@@ -154,7 +154,7 @@ void CJS_Global::queryprop_static(
void CJS_Global::getprop_static(
v8::Local<v8::Name> property,
const v8::PropertyCallbackInfo<v8::Value>& info) {
- DCHECK(property->IsString());
+ ASSERT(property->IsString());
JSSpecialPropGet<CJS_Global>(
"global",
v8::Local<v8::String>::New(info.GetIsolate(), property->ToString()),
@@ -166,7 +166,7 @@ void CJS_Global::putprop_static(
v8::Local<v8::Name> property,
v8::Local<v8::Value> value,
const v8::PropertyCallbackInfo<v8::Value>& info) {
- DCHECK(property->IsString());
+ ASSERT(property->IsString());
JSSpecialPropPut<CJS_Global>(
"global",
v8::Local<v8::String>::New(info.GetIsolate(), property->ToString()),
@@ -177,7 +177,7 @@ void CJS_Global::putprop_static(
void CJS_Global::delprop_static(
v8::Local<v8::Name> property,
const v8::PropertyCallbackInfo<v8::Boolean>& info) {
- DCHECK(property->IsString());
+ ASSERT(property->IsString());
JSSpecialPropDel<CJS_Global>(
"global",
v8::Local<v8::String>::New(info.GetIsolate(), property->ToString()),