Chromium Code Reviews| Index: src/objects.cc |
| diff --git a/src/objects.cc b/src/objects.cc |
| index dad194f5d3a025f2906342bdbe6541e7286d6555..d0c415e6cd7df6c5a50a7e13aa8c403a119b7db0 100644 |
| --- a/src/objects.cc |
| +++ b/src/objects.cc |
| @@ -13013,7 +13013,7 @@ int JSObject::GetOwnElementKeys(FixedArray* storage, |
| case DICTIONARY_ELEMENTS: { |
| if (storage != NULL) { |
| - element_dictionary()->CopyKeysTo(storage, 0, filter, |
| + element_dictionary()->CopyKeysTo(storage, counter, filter, |
| SeededNumberDictionary::SORTED); |
| } |
| counter += element_dictionary()->NumberOfElementsFilterAttributes(filter); |
| @@ -13030,7 +13030,7 @@ int JSObject::GetOwnElementKeys(FixedArray* storage, |
| SeededNumberDictionary* dictionary = |
| SeededNumberDictionary::cast(arguments); |
| if (storage != NULL) { |
| - dictionary->CopyKeysTo(storage, 0, filter, |
| + dictionary->CopyKeysTo(storage, counter, filter, |
|
adamk
2015/07/17 18:10:34
This should always be zero anyway, but it seemed c
Michael Starzinger
2015/07/20 08:12:33
Agreed.
|
| SeededNumberDictionary::UNSORTED); |
| } |
| counter += dictionary->NumberOfElementsFilterAttributes(filter); |