Changeset 15468 in webkit for trunk/JavaScriptCore/kjs/string_object.cpp
- Timestamp:
- Jul 16, 2006, 2:06:28 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/string_object.cpp
r15385 r15468 27 27 #include "error_object.h" 28 28 #include "operations.h" 29 #include " reference_list.h"29 #include "PropertyNameArray.h" 30 30 #include "regexp_object.h" 31 31 #include <wtf/unicode/Unicode.h> … … 95 95 } 96 96 97 void StringInstance::getPropertyList(ReferenceList& propertyList, bool recursive) 98 { 99 //### FIXME: should avoid duplicates with prototype 97 void StringInstance::getPropertyNames(ExecState* exec, PropertyNameArray& propertyNames) 98 { 100 99 int size = internalValue()->getString().size(); 101 100 for (int i = 0; i < size; i++) 102 property List.append(Reference(this, i));103 return JSObject::getProperty List(propertyList, recursive);101 propertyNames.add(Identifier(UString(i))); 102 return JSObject::getPropertyNames(exec, propertyNames); 104 103 } 105 104
Note:
See TracChangeset
for help on using the changeset viewer.