]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - runtime/PropertyNameArray.cpp
JavaScriptCore-1218.34.tar.gz
[apple/javascriptcore.git] / runtime / PropertyNameArray.cpp
index 8efb4065e1739cf05d5d9166c75becd80dde30fc..08a5296a40fce4ca164fe4cef65189224c580a25 100644 (file)
@@ -22,7 +22,7 @@
 #include "PropertyNameArray.h"
 
 #include "JSObject.h"
-#include "ScopeChain.h"
+
 #include "Structure.h"
 #include "StructureChain.h"
 
@@ -45,7 +45,7 @@ void PropertyNameArray::add(StringImpl* identifier)
             for (size_t i = 0; i < size; ++i)
                 m_set.add(m_data->propertyNameVector()[i].impl());
         }
-        if (!m_set.add(identifier).second)
+        if (!m_set.add(identifier).isNewEntry)
             return;
     }