Changeset 15468 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp
- Timestamp:
- Jul 16, 2006, 2:06:28 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r15385 r15468 36 36 #include "lexer.h" 37 37 #include "operations.h" 38 #include " reference_list.h"38 #include "PropertyNameArray.h" 39 39 #include <wtf/HashSet.h> 40 40 #include <wtf/HashCountedSet.h> … … 1860 1860 JSObject *v; 1861 1861 Completion c; 1862 ReferenceList propertyList;1862 PropertyNameArray propertyNames; 1863 1863 1864 1864 if (varDecl) { … … 1879 1879 KJS_CHECKEXCEPTION 1880 1880 v = e->toObject(exec); 1881 v->getPropertyList(propertyList); 1882 1883 ReferenceListIterator propIt = propertyList.begin(); 1884 1885 while (propIt != propertyList.end()) { 1886 Identifier name = propIt->getPropertyName(); 1887 if (!v->hasProperty(exec, name)) { 1888 propIt++; 1889 continue; 1890 } 1891 1892 JSValue *str = jsString(name.ustring()); 1893 1894 if (lexpr->isResolveNode()) { 1881 v->getPropertyNames(exec, propertyNames); 1882 1883 PropertyNameArrayIterator end = propertyNames.end(); 1884 for (PropertyNameArrayIterator it = propertyNames.begin(); it != end; ++it) { 1885 const Identifier &name = *it; 1886 if (!v->hasProperty(exec, name)) 1887 continue; 1888 1889 JSValue *str = jsString(name.ustring()); 1890 1891 if (lexpr->isResolveNode()) { 1895 1892 const Identifier &ident = static_cast<ResolveNode *>(lexpr.get())->identifier(); 1896 1893 … … 1951 1948 } 1952 1949 } 1953 1954 propIt++;1955 1950 } 1956 1951
Note:
See TracChangeset
for help on using the changeset viewer.