Index: src/lookup.cc |
diff --git a/src/lookup.cc b/src/lookup.cc |
index 013d074d7714c017e7122ef432b04693f55fa2e7..e9dc3d3a931863bb7eac1059d814b27a9ed43d2d 100644 |
--- a/src/lookup.cc |
+++ b/src/lookup.cc |
@@ -134,7 +134,7 @@ void LookupIterator::PrepareForDataProperty(Handle<Object> value) { |
ElementsKind kind = holder_map_->elements_kind(); |
ElementsKind to = value->OptimalElementsKind(); |
if (IsHoleyElementsKind(kind)) to = GetHoleyElementsKind(to); |
- to = IsMoreGeneralElementsKindTransition(kind, to) ? to : kind; |
+ to = GetMoreGeneralElementsKind(kind, to); |
JSObject::TransitionElementsKind(holder, to); |
holder_map_ = handle(holder->map(), isolate_); |