Changeset 109177 in webkit for trunk/Source/JavaScriptCore/runtime/PropertySlot.cpp
- Timestamp:
- Feb 28, 2012, 5:39:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/PropertySlot.cpp
r97097 r109177 35 35 CallData callData; 36 36 CallType callType = m_data.getterFunc->methodTable()->getCallData(m_data.getterFunc, callData); 37 38 // Only objects can have accessor properties. 39 // If the base is WebCore's global object then we need to substitute the shell. 40 ASSERT(m_slotBase.isObject()); 41 return call(exec, m_data.getterFunc, callType, callData, m_thisValue.toThisObject(exec), exec->emptyList()); 37 return call(exec, m_data.getterFunc, callType, callData, m_thisValue.isObject() ? m_thisValue.toThisObject(exec) : m_thisValue, exec->emptyList()); 42 38 } 43 39
Note:
See TracChangeset
for help on using the changeset viewer.