Changeset 15468 in webkit for trunk/JavaScriptCore/kjs/object.cpp
- Timestamp:
- Jul 16, 2006, 2:06:28 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object.cpp
r15385 r15468 30 30 #include "nodes.h" 31 31 #include "operations.h" 32 #include " reference_list.h"32 #include "PropertyNameArray.h" 33 33 #include <math.h> 34 34 … … 476 476 } 477 477 478 void JSObject::getProperty List(ReferenceList& propertyList, bool recursive)479 { 480 _prop.addEnumerablesToReferenceList(propertyList, this);478 void JSObject::getPropertyNames(ExecState* exec, PropertyNameArray& propertyNames) 479 { 480 _prop.getEnumerablePropertyNames(propertyNames); 481 481 482 482 // Add properties from the static hashtable of properties … … 487 487 const HashEntry *e = info->propHashTable->entries; 488 488 for (int i = 0; i < size; ++i, ++e) { 489 if ( e->s && !(e->attr & DontEnum))490 property List.append(Reference(this, e->s)); /// ######### check for duplicates with the propertymap489 if (e->s && !(e->attr & DontEnum)) 490 propertyNames.add(e->s); 491 491 } 492 492 } 493 493 info = info->parentClass; 494 494 } 495 if (_proto->isObject() && recursive)496 static_cast<JSObject*>(_proto)->getPropertyList(propertyList, recursive);495 if (_proto->isObject()) 496 static_cast<JSObject*>(_proto)->getPropertyNames(exec, propertyNames); 497 497 } 498 498
Note:
See TracChangeset
for help on using the changeset viewer.