Index: third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp |
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp |
index f016ccc0219530f474ae7f2cf36033c173b212e7..782e5bbab014739c75726871ec7dc193b38f4843 100644 |
--- a/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp |
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp |
@@ -42,6 +42,8 @@ v8::Local<v8::Object> V8InjectedScriptHost::create(v8::Local<v8::Context> contex |
{ |
v8::Isolate* isolate = inspector->isolate(); |
v8::Local<v8::Object> injectedScriptHost = v8::Object::New(isolate); |
+ bool success = injectedScriptHost->SetPrototype(context, v8::Null(isolate)).FromMaybe(false); |
+ DCHECK(success); |
v8::Local<v8::External> debuggerExternal = v8::External::New(isolate, inspector); |
setFunctionProperty(context, injectedScriptHost, "internalConstructorName", V8InjectedScriptHost::internalConstructorNameCallback, debuggerExternal); |
setFunctionProperty(context, injectedScriptHost, "formatAccessorsAsProperties", V8InjectedScriptHost::formatAccessorsAsProperties, debuggerExternal); |