2008-09-15 Maciej Stachowiak <mjs@apple.com>
[WebKit.git] / JavaScriptCore / kjs / JSObject.h
index 4efadbb8ea32bd03efd5640c5af63a8adc0ca8ea..e3e6085707f1bb2229f854a141240975c6c16a3e 100644 (file)
@@ -388,6 +388,7 @@ inline void JSObject::putDirect(const Identifier& propertyName, JSValue* value,
          if (m_structureID->propertyMap().storageSize() == inlineStorageCapacity)
              allocatePropertyStorage(m_structureID->propertyMap().storageSize(), m_structureID->propertyMap().size());
          m_structureID->propertyMap().put(propertyName, value, attributes, checkReadOnly, this, slot, m_propertyStorage);
+         m_structureID->clearEnumerationCache();
          return;
      }