Changeset 2262 in webkit for trunk/JavaScriptCore
- Timestamp:
- Oct 6, 2002, 3:17:41 PM (23 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r2250 r2262 1 2002-10-06 Darin Adler <[email protected]> 2 3 I noticed some broken lists at mapblast.com and tracked it down to this. 4 5 * kjs/array_object.cpp: 6 (ArrayInstanceImp::put): Don't truncate the list; only extend the length if 7 it's not already long enough. 8 (ArrayProtoFuncImp::call): Fix some ifdef'd code so it compiles if you turn 9 the ifdefs on. 10 1 11 2002-10-04 Darin Adler <[email protected]> 2 12 -
trunk/JavaScriptCore/ChangeLog-2002-12-03
r2250 r2262 1 2002-10-06 Darin Adler <[email protected]> 2 3 I noticed some broken lists at mapblast.com and tracked it down to this. 4 5 * kjs/array_object.cpp: 6 (ArrayInstanceImp::put): Don't truncate the list; only extend the length if 7 it's not already long enough. 8 (ArrayProtoFuncImp::call): Fix some ifdef'd code so it compiles if you turn 9 the ifdefs on. 10 1 11 2002-10-04 Darin Adler <[email protected]> 2 12 -
trunk/JavaScriptCore/ChangeLog-2003-10-25
r2250 r2262 1 2002-10-06 Darin Adler <[email protected]> 2 3 I noticed some broken lists at mapblast.com and tracked it down to this. 4 5 * kjs/array_object.cpp: 6 (ArrayInstanceImp::put): Don't truncate the list; only extend the length if 7 it's not already long enough. 8 (ArrayProtoFuncImp::call): Fix some ifdef'd code so it compiles if you turn 9 the ifdefs on. 10 1 11 2002-10-04 Darin Adler <[email protected]> 2 12 -
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.