From: adachan@apple.com Date: Thu, 6 Dec 2007 19:33:04 +0000 (+0000) Subject: Build fix. X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=9e5eb9671c41ef4bfef0e74092e4660654392b3e Build fix. Reviewed by Geoff. * WebScriptCallFrame.cpp: (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28488 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/WebKit/win/ChangeLog b/WebKit/win/ChangeLog index 9f266a86156b..134f9761efac 100644 --- a/WebKit/win/ChangeLog +++ b/WebKit/win/ChangeLog @@ -1,3 +1,12 @@ +2007-12-06 Ada Chan + + Build fix. + + Reviewed by Geoff. + + * WebScriptCallFrame.cpp: + (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): + 2007-12-04 Geoffrey Garen Reviewed by Darin Adler. diff --git a/WebKit/win/WebScriptCallFrame.cpp b/WebKit/win/WebScriptCallFrame.cpp index 4b1866ad88f0..7369ec228404 100644 --- a/WebKit/win/WebScriptCallFrame.cpp +++ b/WebKit/win/WebScriptCallFrame.cpp @@ -33,6 +33,7 @@ #include "COMEnumVariant.h" #include "Function.h" +#include #include #include #include @@ -222,8 +223,7 @@ HRESULT STDMETHODCALLTYPE WebScriptCallFrame::valueForVariable( JSValue* WebScriptCallFrame::valueByEvaluatingJavaScriptFromString(BSTR script) { ExecState* state = m_state; - Interpreter* interp = state->dynamicInterpreter(); - JSGlobalObject* globObj = interp->globalObject(); + JSGlobalObject* globObj = state->dynamicGlobalObject(); // find "eval" JSObject* eval = 0; @@ -249,7 +249,7 @@ JSValue* WebScriptCallFrame::valueByEvaluatingJavaScriptFromString(BSTR script) scriptExecutionResult = eval->call(state, 0, args); } else // no "eval", or no context (i.e. global scope) - use global fallback - scriptExecutionResult = interp->evaluate(UString(), 0, code.data(), code.size(), globObj).value(); + scriptExecutionResult = Interpreter::evaluate(state, UString(), 0, code.data(), code.size(), globObj).value(); if (state->hadException()) scriptExecutionResult = state->exception(); // (may be redundant depending on which eval path was used)