Index: src/lookup.cc |
diff --git a/src/lookup.cc b/src/lookup.cc |
index 544b164a8b7064d8769f4ade67bc567705cc01c2..4ab0a7f6ea84983241a70ea6ffe72bbafac30573 100644 |
--- a/src/lookup.cc |
+++ b/src/lookup.cc |
@@ -356,7 +356,11 @@ void LookupIterator::PrepareTransitionToDataProperty( |
state_ = TRANSITION; |
transition_ = transition; |
- if (!transition->is_dictionary_map()) { |
+ if (transition->is_dictionary_map()) { |
+ // Don't set enumeration index (it will be set during value store). |
+ property_details_ = |
+ PropertyDetails(attributes, i::DATA, 0, PropertyCellType::kNoCell); |
+ } else { |
property_details_ = transition->GetLastDescriptorDetails(); |
has_property_ = true; |
} |