Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 6c65454bd4ab61ed97fbe592b005a25e4507c01a..0515019630ad1d7e69f0f3b788072b50b090681c 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -4189,7 +4189,7 @@ MaybeObject* Heap::AllocateGlobalObject(JSFunction* constructor) { |
StringDictionary* dictionary; |
MaybeObject* maybe_dictionary = |
StringDictionary::Allocate( |
- map->NumberOfDescribedProperties() * 2 + initial_size); |
+ map->NumberOfOwnDescriptors() * 2 + initial_size); |
if (!maybe_dictionary->To(&dictionary)) return maybe_dictionary; |
// The global object might be created from an object template with accessors. |