2007-12-03 Mark Rowe <mrowe@apple.com>
[WebKit-https.git] / WebKit / wx / WebView.cpp
index fcc829a985b0d75705cb858005001907bf45daa1..5bb379662614c81846eb0f03220c168fd5980f9b 100644 (file)
@@ -275,7 +275,7 @@ wxString wxWebView::RunScript(const wxString& javascript)
     if (m_impl->frame) {
         KJS::JSValue* result = m_impl->frame->loader()->executeScript(javascript, true);
         if (result)
-            returnValue = wxString(result->toString(m_impl->frame->scriptProxy()->interpreter()->globalExec()).UTF8String().c_str(), wxConvUTF8);        
+            returnValue = wxString(result->toString(m_impl->frame->scriptProxy()->globalObject()->globalExec()).UTF8String().c_str(), wxConvUTF8);        
     }
     return returnValue;
 }