| Index: src/runtime/runtime-array.cc
|
| diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc
|
| index 072d839052faf01d8a97982fd7c680723509c175..7f9af9c8e7dd44164147b060afb760b1c897c6b3 100644
|
| --- a/src/runtime/runtime-array.cc
|
| +++ b/src/runtime/runtime-array.cc
|
| @@ -207,7 +207,6 @@ RUNTIME_FUNCTION(Runtime_GetArrayKeys) {
|
|
|
| KeyAccumulator accumulator(isolate);
|
| // No need to separate protoype levels since we only get numbers/element keys
|
| - accumulator.NextPrototype();
|
| for (PrototypeIterator iter(isolate, array,
|
| PrototypeIterator::START_AT_RECEIVER);
|
| !iter.IsAtEnd(); iter.Advance()) {
|
| @@ -218,6 +217,7 @@ RUNTIME_FUNCTION(Runtime_GetArrayKeys) {
|
| // collecting keys in that case.
|
| return *isolate->factory()->NewNumberFromUint(length);
|
| }
|
| + accumulator.NextPrototype();
|
| Handle<JSObject> current = PrototypeIterator::GetCurrent<JSObject>(iter);
|
| JSObject::CollectOwnElementKeys(current, &accumulator, NONE);
|
| }
|
|
|