X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/6fe7ccc865dc7d7541b93c5bcaf6368d2c98a174..refs/heads/master:/runtime/PropertySlot.cpp diff --git a/runtime/PropertySlot.cpp b/runtime/PropertySlot.cpp index 8ac8741..c949f4b 100644 --- a/runtime/PropertySlot.cpp +++ b/runtime/PropertySlot.cpp @@ -21,20 +21,15 @@ #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->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()); + ASSERT(m_thisValue); + return callGetter(exec, m_thisValue, m_data.getter.getterSetter); } } // namespace JSC