Changeset 120045 in webkit for trunk/Source/JavaScriptCore/runtime/JSObject.cpp
- Timestamp:
- Jun 12, 2012, 12:08:14 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSObject.cpp
r119865 r120045 57 57 const ClassInfo JSFinalObject::s_info = { "Object", &Base::s_info, 0, 0, CREATE_METHOD_TABLE(JSFinalObject) }; 58 58 59 static inline void getClassPropertyNames(ExecState* exec, const ClassInfo* classInfo, PropertyNameArray& propertyNames, EnumerationMode mode )59 static inline void getClassPropertyNames(ExecState* exec, const ClassInfo* classInfo, PropertyNameArray& propertyNames, EnumerationMode mode, bool didReify) 60 60 { 61 61 // Add properties from the static hashtables of properties … … 70 70 const HashEntry* entry = table->table; 71 71 for (int i = 0; i <= hashSizeMask; ++i, ++entry) { 72 if (entry->key() && (!(entry->attributes() & DontEnum) || (mode == IncludeDontEnumProperties)) )72 if (entry->key() && (!(entry->attributes() & DontEnum) || (mode == IncludeDontEnumProperties)) && !((entry->attributes() & Function) && didReify)) 73 73 propertyNames.add(entry->key()); 74 74 } … … 418 418 void JSObject::getOwnPropertyNames(JSObject* object, ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) 419 419 { 420 if (!object->staticFunctionsReified()) 421 getClassPropertyNames(exec, object->classInfo(), propertyNames, mode); 420 getClassPropertyNames(exec, object->classInfo(), propertyNames, mode, object->staticFunctionsReified()); 422 421 object->structure()->getPropertyNamesFromStructure(exec->globalData(), propertyNames, mode); 423 422 }
Note:
See TracChangeset
for help on using the changeset viewer.