Changeset 10744 in webkit for trunk/JavaScriptCore/kjs/object.cpp
- Timestamp:
- Oct 5, 2005, 1:05:44 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object.cpp
r10728 r10744 29 29 #include "interpreter.h" 30 30 #include "lookup.h" 31 #include " reference_list.h"31 #include "IdentifierSequencedSet.h" 32 32 33 33 #include <assert.h> … … 375 375 } 376 376 377 ReferenceList ObjectImp::propList(ExecState *exec, bool recursive) 378 { 379 ReferenceList list; 380 if (_proto->isObject() && recursive) 381 list = static_cast<ObjectImp*>(_proto)->propList(exec,recursive); 382 383 _prop.addEnumerablesToReferenceList(list, this); 377 void ObjectImp::getPropertyNames(ExecState *exec, IdentifierSequencedSet &propertyNames) 378 { 379 _prop.getEnumerablePropertyNames(propertyNames); 384 380 385 381 // Add properties from the static hashtable of properties … … 390 386 const HashEntry *e = info->propHashTable->entries; 391 387 for (int i = 0; i < size; ++i, ++e) { 392 if ( e->s && !(e->attr & DontEnum))393 list.append(Reference(this, e->s)); /// ######### check for duplicates with the propertymap388 if (e->s && !(e->attr & DontEnum)) 389 propertyNames.insert(e->s); 394 390 } 395 391 } … … 397 393 } 398 394 399 return list; 395 if (_proto->isObject()) 396 static_cast<ObjectImp*>(_proto)->getPropertyNames(exec, propertyNames); 400 397 } 401 398
Note:
See TracChangeset
for help on using the changeset viewer.