Changeset 50323 in webkit for trunk/JavaScriptCore/runtime


Ignore:
Timestamp:
Oct 30, 2009, 1:13:38 AM (16 years ago)
Author:
[email protected]
Message:

Regression: crash enumerating properties of an object with getters or setters
https://bugs.webkit.org/show_bug.cgi?id=30948

Reviewed by Gavin Barraclough

Add a guard to prevent us trying to cache property enumeration on
objects with getters or setters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/JSPropertyNameIterator.cpp

    r50254 r50323  
    4646    size_t numCacheableSlots = 0;
    4747    if (!o->structure()->hasNonEnumerableProperties() && !o->structure()->hasAnonymousSlots() &&
    48         !o->structure()->isUncacheableDictionary() && !o->structure()->typeInfo().overridesGetPropertyNames())
     48        !o->structure()->hasGetterSetterProperties() && !o->structure()->isUncacheableDictionary() &&
     49        !o->structure()->typeInfo().overridesGetPropertyNames())
    4950        numCacheableSlots = o->structure()->propertyStorageSize();
    5051
Note: See TracChangeset for help on using the changeset viewer.