#include "JSFunction.h"
#include "JSGlobalObject.h"
+#include "Operations.h"
namespace JSC {
return exec->exception();
CallData callData;
- CallType callType = m_data.getterFunc->getCallData(callData);
- return call(exec, m_data.getterFunc, callType, callData, thisValue(), exec->emptyList());
+ CallType callType = m_data.getterFunc->methodTable()->getCallData(m_data.getterFunc, callData);
+ return call(exec, m_data.getterFunc, callType, callData, m_thisValue.isObject() ? m_thisValue.toThisObject(exec) : m_thisValue, exec->emptyList());
}
} // namespace JSC