Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 911dc459595b4886fe548665cc07d311c42e18e7..8e724ebb6de99674ebd72883f1baa5ac30372899 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -3883,11 +3883,9 @@ MaybeObject* Heap::AllocateInitialMap(JSFunction* fun) { |
for (int i = 0; i < count; i++) { |
String* name = fun->shared()->GetThisPropertyAssignmentName(i); |
ASSERT(name->IsSymbol()); |
- FieldDescriptor field(name, i, NONE); |
- field.SetEnumerationIndex(i); |
+ FieldDescriptor field(name, i, NONE, i + 1); |
descriptors->Set(i, &field, witness); |
} |
- descriptors->SetNextEnumerationIndex(count); |
descriptors->SortUnchecked(witness); |
// The descriptors may contain duplicates because the compiler does not |