Ignore:
Timestamp:
Oct 22, 2007, 3:18:24 PM (18 years ago)
Author:
darin
Message:

Reviewed by Brady.

  • kjs/array_instance.cpp: (KJS::ArrayInstance::mark): Copy and paste error: I accidentally had code here that was making a copy of the HashMap -- that's illegal inside a mark function and was unnecessary. The other callsite was modifying the map as it iterated it, but this function is not.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/array_instance.cpp

    r26883 r26897  
    422422
    423423    if (SparseArrayValueMap* map = storage->m_sparseValueMap) {
    424         SparseArrayValueMap copy = *map;
    425         SparseArrayValueMap::iterator end = copy.end();
    426         for (SparseArrayValueMap::iterator it = copy.begin(); it != end; ++it) {
     424        SparseArrayValueMap::iterator end = map->end();
     425        for (SparseArrayValueMap::iterator it = map->begin(); it != end; ++it) {
    427426            JSValue* value = it->second;
    428427            if (!value->marked())
Note: See TracChangeset for help on using the changeset viewer.