| Index: src/runtime/runtime-array.cc
|
| diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc
|
| index 3e3753c07a88788aec1763ec2d87244000100097..a24345ec33ee39bbd9753618a711e6108fed4a7b 100644
|
| --- a/src/runtime/runtime-array.cc
|
| +++ b/src/runtime/runtime-array.cc
|
| @@ -206,7 +206,7 @@ RUNTIME_FUNCTION(Runtime_GetArrayKeys) {
|
| return *isolate->factory()->NewNumberFromUint(Min(actual_length, length));
|
| }
|
|
|
| - KeyAccumulator accumulator(isolate);
|
| + KeyAccumulator accumulator(isolate, ALL_PROPERTIES);
|
| // No need to separate protoype levels since we only get numbers/element keys
|
| for (PrototypeIterator iter(isolate, array,
|
| PrototypeIterator::START_AT_RECEIVER);
|
| @@ -220,7 +220,7 @@ RUNTIME_FUNCTION(Runtime_GetArrayKeys) {
|
| }
|
| accumulator.NextPrototype();
|
| Handle<JSObject> current = PrototypeIterator::GetCurrent<JSObject>(iter);
|
| - JSObject::CollectOwnElementKeys(current, &accumulator, NONE);
|
| + JSObject::CollectOwnElementKeys(current, &accumulator, ALL_PROPERTIES);
|
| }
|
| // Erase any keys >= length.
|
| // TODO(adamk): Remove this step when the contract of %GetArrayKeys
|
|
|