X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/14957cd040308e3eeec43d26bae5d76da13fcd85..1981f5dfe8d77d97469d20652f712a09400c48ed:/runtime/PropertySlot.cpp diff --git a/runtime/PropertySlot.cpp b/runtime/PropertySlot.cpp index fd16c0c..8ac8741 100644 --- a/runtime/PropertySlot.cpp +++ b/runtime/PropertySlot.cpp @@ -33,8 +33,8 @@ JSValue PropertySlot::functionGetter(ExecState* exec) const 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