Index: Source/web/InspectorFrontendClientImpl.cpp |
diff --git a/Source/web/InspectorFrontendClientImpl.cpp b/Source/web/InspectorFrontendClientImpl.cpp |
index daf28786c6bc1f392d854f738fc234fa74ba0e11..568df9fccb2b146911d56db23f764ec43a4c8bab 100644 |
--- a/Source/web/InspectorFrontendClientImpl.cpp |
+++ b/Source/web/InspectorFrontendClientImpl.cpp |
@@ -69,8 +69,8 @@ void InspectorFrontendClientImpl::windowObjectCleared() |
if (m_frontendHost) |
m_frontendHost->disconnectClient(); |
m_frontendHost = InspectorFrontendHost::create(this, m_frontendPage); |
- v8::Handle<v8::Value> frontendHostObj = toV8(m_frontendHost.get(), v8::Handle<v8::Object>(), frameContext->GetIsolate()); |
v8::Handle<v8::Object> global = frameContext->Global(); |
+ v8::Handle<v8::Value> frontendHostObj = toV8(m_frontendHost.get(), global, frameContext->GetIsolate()); |
global->Set(v8::String::NewFromUtf8(isolate, "InspectorFrontendHost"), frontendHostObj); |
ScriptController* scriptController = m_frontendPage->mainFrame() ? &m_frontendPage->mainFrame()->script() : 0; |