Index: src/runtime/runtime-array.cc |
diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc |
index 519df7784bca7a1506229f1f2da7491830beb5c9..30bcae27cb7b7e5ad3d69cddf31a1e874f606f65 100644 |
--- a/src/runtime/runtime-array.cc |
+++ b/src/runtime/runtime-array.cc |
@@ -211,9 +211,8 @@ RUNTIME_FUNCTION(Runtime_GetArrayKeys) { |
// collecting keys in that case. |
return *isolate->factory()->NewNumberFromUint(length); |
} |
- accumulator.NextPrototype(); |
Handle<JSObject> current = PrototypeIterator::GetCurrent<JSObject>(iter); |
- accumulator.CollectOwnElementIndices(current); |
+ accumulator.CollectOwnElementIndices(array, current); |
} |
// Erase any keys >= length. |
Handle<FixedArray> keys = accumulator.GetKeys(KEEP_NUMBERS); |