Changeset 1623 in webkit for trunk/JavaScriptCore/kjs/array_object.cpp
- Timestamp:
- Jul 21, 2002, 10:38:39 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/array_object.cpp
r1024 r1623 361 361 Value jObj = thisObj.get(exec,UString::from(j)); 362 362 int cmp; 363 if ( useSortFunction ) 364 { 363 if (jObj.type() == UndefinedType) { 364 cmp = 1; 365 } else if (minObj.type() == UndefinedType) { 366 cmp = -1; 367 } else if (useSortFunction) { 365 368 List l; 366 369 l.append(jObj); … … 368 371 Object thisObj = exec->interpreter()->globalObject(); 369 372 cmp = sortFunction.call(exec,thisObj, l ).toInt32(exec); 370 } 371 else 373 } else { 372 374 cmp = (jObj.toString(exec) < minObj.toString(exec)) ? -1 : 1; 375 } 373 376 if ( cmp < 0 ) 374 377 {
Note:
See TracChangeset
for help on using the changeset viewer.