Index: src/inspector/v8-injected-script-host.cc |
diff --git a/src/inspector/v8-injected-script-host.cc b/src/inspector/v8-injected-script-host.cc |
index 35a52f6265f96145058b34faf8b5d08a802da4ff..663e9e7b020f6d4d096763285d9bfb1094089f4d 100644 |
--- a/src/inspector/v8-injected-script-host.cc |
+++ b/src/inspector/v8-injected-script-host.cc |
@@ -105,7 +105,9 @@ v8::Local<v8::Object> V8InjectedScriptHost::create( |
void V8InjectedScriptHost::nullifyPrototypeCallback( |
const v8::FunctionCallbackInfo<v8::Value>& info) { |
- CHECK(info.Length() == 1 && info[0]->IsObject()); |
+ CHECK(info.Length() == 1); |
+ DCHECK(info[0]->IsObject()); |
+ if (!info[0]->IsObject()) return; |
v8::Isolate* isolate = info.GetIsolate(); |
info[0] |
.As<v8::Object>() |