Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(863)

Unified Diff: src/inspector/v8-injected-script-host.cc

Issue 2801763002: [inspector] fixed injected-script-host crash (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/inspector/injected-script-source.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>()
« no previous file with comments | « src/inspector/injected-script-source.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698