#include "config.h"
#include "PropertySlot.h"
-#include "JSFunction.h"
-#include "JSGlobalObject.h"
+#include "GetterSetter.h"
+#include "JSCJSValueInlines.h"
namespace JSC {
JSValue PropertySlot::functionGetter(ExecState* exec) const
{
- // Prevent getter functions from observing execution if an exception is pending.
- if (exec->hadException())
- return exec->exception();
-
- CallData callData;
- CallType callType = m_data.getterFunc->getCallData(callData);
- return call(exec, m_data.getterFunc, callType, callData, thisValue(), exec->emptyList());
+ ASSERT(m_thisValue);
+ return callGetter(exec, m_thisValue, m_data.getter.getterSetter);
}
} // namespace JSC