for-in is failing fast/dom/dataset-xhtml.xhtml and dataset.html tests
[WebKit-https.git] / Source / JavaScriptCore / runtime / Structure.cpp
index 674f2b4..72218b7 100644 (file)
@@ -1291,6 +1291,9 @@ bool Structure::canCacheGenericPropertyNameEnumerator() const
     if (hasIndexedProperties(indexingType()))
         return false;
 
+    if (typeInfo().overridesGetPropertyNames())
+        return false;
+
     StructureChain* structureChain = m_cachedPrototypeChain.get();
     ASSERT(structureChain);
     WriteBarrier<Structure>* structure = structureChain->head();