X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/14957cd040308e3eeec43d26bae5d76da13fcd85..4be4e30906bcb8ee30b4d189205cb70bad6707ce:/runtime/PropertyNameArray.cpp?ds=inline diff --git a/runtime/PropertyNameArray.cpp b/runtime/PropertyNameArray.cpp index 8efb406..08a5296 100644 --- a/runtime/PropertyNameArray.cpp +++ b/runtime/PropertyNameArray.cpp @@ -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; }