+2007-12-06 Ada Chan <adachan@apple.com>
+
+ Build fix.
+
+ Reviewed by Geoff.
+
+ * WebScriptCallFrame.cpp:
+ (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
+
2007-12-04 Geoffrey Garen <ggaren@apple.com>
Reviewed by Darin Adler.
#include "COMEnumVariant.h"
#include "Function.h"
+#include <JavaScriptCore/Interpreter.h>
#include <JavaScriptCore/JSGlobalObject.h>
#include <JavaScriptCore/JSStringRefBSTR.h>
#include <JavaScriptCore/JSValueRef.h>
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;
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)