X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/14957cd040308e3eeec43d26bae5d76da13fcd85..cb9aa2694aba0ae4f946ed34b8e0f6c99c1cfe44:/runtime/PropertySlot.cpp?ds=sidebyside diff --git a/runtime/PropertySlot.cpp b/runtime/PropertySlot.cpp index fd16c0c..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->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