Check that all properties are processed in NameDictionary::CopyEnumKeysTo.

BUG=372579
LOG=N
R=verwaest@chromium.org

Review URL: https://codereview.chromium.org/306663002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21571 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ulan@chromium.org 2014-05-28 13:36:25 +00:00
parent 509c15c799
commit 776fcd685d

View File

@ -16100,6 +16100,7 @@ void NameDictionary::CopyEnumKeysTo(FixedArray* storage) {
if (properties == length) break;
}
}
CHECK_EQ(length, properties);
EnumIndexComparator cmp(this);
Smi** start = reinterpret_cast<Smi**>(storage->GetFirstElementAddress());
std::sort(start, start + length, cmp);