Changeset 36435 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Sep 15, 2008, 3:02:56 AM (17 years ago)
Author:
[email protected]
Message:

2008-09-15 Maciej Stachowiak <[email protected]>

Reviewed by Cameron Zwarich.


  • fix JSC test failures introduced by fix for 20849
  • kjs/PropertyMap.cpp: (JSC::PropertyMap::getEnumerablePropertyNames): Use the correct count.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r36434 r36435  
     12008-09-15  Maciej Stachowiak  <[email protected]>
     2
     3        Reviewed by Cameron Zwarich.
     4       
     5        - fix JSC test failures introduced by fix for 20849
     6
     7        * kjs/PropertyMap.cpp:
     8        (JSC::PropertyMap::getEnumerablePropertyNames): Use the correct count.
     9
    1102008-09-15  Cameron Zwarich  <[email protected]>
    211
  • trunk/JavaScriptCore/kjs/PropertyMap.cpp

    r36429 r36435  
    509509    }
    510510
     511    size_t enumerableCount = p - sortedEnumerables.data();
    511512    // Sort the entries by index.
    512     qsort(sortedEnumerables.data(), p - sortedEnumerables.data(), sizeof(Entry*), comparePropertyMapEntryIndices);
     513    qsort(sortedEnumerables.data(), enumerableCount, sizeof(Entry*), comparePropertyMapEntryIndices);
     514    sortedEnumerables.resize(enumerableCount);
    513515
    514516    // Put the keys of the sorted entries into the list.
Note: See TracChangeset for help on using the changeset viewer.