Index: src/handles.cc |
diff --git a/src/handles.cc b/src/handles.cc |
index 34eaddbbd71e7395c360430a2f237df2bd484145..943a1c0b6ac833e1a0a5e614857e8bfd45a2e7ed 100644 |
--- a/src/handles.cc |
+++ b/src/handles.cc |
@@ -711,7 +711,7 @@ Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, |
isolate); |
} |
isolate->counters()->enum_cache_misses()->Increment(); |
- int num_enum = object->NumberOfEnumProperties(); |
+ int num_enum = object->NumberOfLocalProperties(DONT_ENUM); |
Handle<FixedArray> storage = isolate->factory()->NewFixedArray(num_enum); |
Handle<FixedArray> sort_array = isolate->factory()->NewFixedArray(num_enum); |
Handle<DescriptorArray> descs = |
@@ -735,7 +735,7 @@ Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, |
ASSERT(storage->length() == index); |
return storage; |
} else { |
- int num_enum = object->NumberOfEnumProperties(); |
+ int num_enum = object->NumberOfLocalProperties(DONT_ENUM); |
Handle<FixedArray> storage = isolate->factory()->NewFixedArray(num_enum); |
Handle<FixedArray> sort_array = isolate->factory()->NewFixedArray(num_enum); |
object->property_dictionary()->CopyEnumKeysTo(*storage, *sort_array); |