X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/b80e619319b1def83d1e8b4f84042b661be1be7f..14957cd040308e3eeec43d26bae5d76da13fcd85:/runtime/PropertySlot.cpp?ds=sidebyside diff --git a/runtime/PropertySlot.cpp b/runtime/PropertySlot.cpp index 2306a11..fd16c0c 100644 --- a/runtime/PropertySlot.cpp +++ b/runtime/PropertySlot.cpp @@ -34,11 +34,7 @@ JSValue PropertySlot::functionGetter(ExecState* exec) const CallData callData; CallType callType = m_data.getterFunc->getCallData(callData); - if (callType == CallTypeHost) - return callData.native.function(exec, m_data.getterFunc, thisValue(), exec->emptyList()); - ASSERT(callType == CallTypeJS); - // FIXME: Can this be done more efficiently using the callData? - return asFunction(m_data.getterFunc)->call(exec, thisValue(), exec->emptyList()); + return call(exec, m_data.getterFunc, callType, callData, thisValue(), exec->emptyList()); } } // namespace JSC