Changeset 182280 in webkit for trunk/Source/JavaScriptCore/runtime/JSObject.cpp
- Timestamp:
- Apr 2, 2015, 11:53:32 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSObject.cpp
r182205 r182280 79 79 80 80 for (auto iter = table->begin(); iter != table->end(); ++iter) { 81 if ((!(iter->attributes() & DontEnum) || shouldIncludeDontEnumProperties(mode)) && !((iter->attributes() & BuiltinOrFunction) && didReify))81 if ((!(iter->attributes() & DontEnum) || mode.includeDontEnumProperties()) && !((iter->attributes() & BuiltinOrFunction) && didReify)) 82 82 propertyNames.add(Identifier::fromString(&vm, iter.key())); 83 83 } … … 1519 1519 void JSObject::getOwnPropertyNames(JSObject* object, ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) 1520 1520 { 1521 if (! shouldIncludeJSObjectPropertyNames(mode)) {1521 if (!mode.includeJSObjectProperties()) { 1522 1522 // We still have to get non-indexed properties from any subclasses of JSObject that have them. 1523 1523 object->methodTable(exec->vm())->getOwnNonIndexPropertyNames(object, exec, propertyNames, mode); … … 1573 1573 SparseArrayValueMap::const_iterator end = map->end(); 1574 1574 for (SparseArrayValueMap::const_iterator it = map->begin(); it != end; ++it) { 1575 if ( shouldIncludeDontEnumProperties(mode) || !(it->value.attributes & DontEnum))1575 if (mode.includeDontEnumProperties() || !(it->value.attributes & DontEnum)) 1576 1576 keys.uncheckedAppend(static_cast<unsigned>(it->key)); 1577 1577 } … … 1595 1595 getClassPropertyNames(exec, object->classInfo(), propertyNames, mode, object->staticFunctionsReified()); 1596 1596 1597 if (! shouldIncludeJSObjectPropertyNames(mode))1597 if (!mode.includeJSObjectProperties()) 1598 1598 return; 1599 1599 … … 2801 2801 { 2802 2802 VM& vm = exec->vm(); 2803 object->methodTable(vm)->getOwnPropertyNames(object, exec, propertyNames, modeThatSkipsJSObject(mode));2803 object->methodTable(vm)->getOwnPropertyNames(object, exec, propertyNames, EnumerationMode(mode, JSObjectPropertiesMode::Exclude)); 2804 2804 2805 2805 if (object->prototype().isNull())
Note:
See TracChangeset
for help on using the changeset viewer.