Changeset 153673 in webkit for trunk/Source/JavaScriptCore/runtime/JSONObject.cpp
- Timestamp:
- Aug 2, 2013, 3:30:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSONObject.cpp
r153532 r153673 516 516 else { 517 517 PropertySlot slot(m_object.get()); 518 if (!m_object->methodTable()->getOwnPropertySlotByIndex(m_object.get(), exec, index, slot)) 519 slot.setUndefined(); 520 if (exec->hadException()) 521 return false; 522 value = slot.getValue(exec, index); 518 if (m_object->methodTable()->getOwnPropertySlotByIndex(m_object.get(), exec, index, slot)) { 519 value = slot.getValue(exec, index); 520 if (exec->hadException()) 521 return false; 522 } else 523 value = jsUndefined(); 523 524 } 524 525 … … 671 672 inValue = array->getIndexQuickly(index); 672 673 else { 673 PropertySlot slot ;674 PropertySlot slot(array); 674 675 if (array->methodTable()->getOwnPropertySlotByIndex(array, m_exec, index, slot)) 675 676 inValue = slot.getValue(m_exec, index); … … 723 724 break; 724 725 } 725 PropertySlot slot ;726 PropertySlot slot(object); 726 727 if (object->methodTable()->getOwnPropertySlot(object, m_exec, properties[index], slot)) 727 728 inValue = slot.getValue(m_exec, properties[index]);
Note:
See TracChangeset
for help on using the changeset viewer.