Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index d5691611b673dfd6263cdbc85eede5e8096f1af2..6195bf58cd6c154c54efa8f1ebca52e24819e33f 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -905,7 +905,7 @@ bool DescriptorArray::IsSortedNoDuplicates(int valid_entries) { |
if (valid_entries == -1) valid_entries = number_of_descriptors(); |
String* current_key = NULL; |
uint32_t current = 0; |
- for (int i = 0; i < valid_entries; i++) { |
+ for (int i = 0; i < number_of_descriptors(); i++) { |
String* key = GetSortedKey(i); |
if (key == current_key) { |
PrintDescriptors(); |