Changeset 2262 in webkit for trunk/JavaScriptCore/kjs/array_object.cpp
- Timestamp:
- Oct 6, 2002, 3:17:41 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/array_object.cpp
r1823 r2262 102 102 unsigned index = propertyName.toULong(&ok); 103 103 if (ok) { 104 setLength(index + 1); 104 if (length <= index) 105 setLength(index + 1); 105 106 storage[index] = value.imp(); 106 107 return; … … 112 113 void ArrayInstanceImp::put(ExecState *exec, unsigned index, const Value &value, int attr) 113 114 { 114 setLength(index + 1); 115 if (length <= index) 116 setLength(index + 1); 115 117 storage[index] = value.imp(); 116 118 } … … 412 414 printf("KJS Array::Sort length=%d\n", length); 413 415 for ( unsigned int i = 0 ; i<length ; ++i ) 414 printf("KJS Array::Sort: %d: %s\n", i, thisObj.get( i).toString().value().ascii() );416 printf("KJS Array::Sort: %d: %s\n", i, thisObj.get(exec, i).toString(exec).ascii() ); 415 417 #endif 416 418 Object sortFunction; … … 470 472 printf("KJS Array::Sort -- Resulting array:\n"); 471 473 for ( unsigned int i = 0 ; i<length ; ++i ) 472 printf("KJS Array::Sort: %d: %s\n", i, thisObj.get( i).toString().value().ascii() );474 printf("KJS Array::Sort: %d: %s\n", i, thisObj.get(exec, i).toString(exec).ascii() ); 473 475 #endif 474 476 result = thisObj;
Note:
See TracChangeset
for help on using the changeset viewer.