Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 05c00824009233bb90642c648d78d262f6a73e17..78560df6310daf2f6084417616c580cfde7eb2c4 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10489,6 +10489,8 @@ MaybeObject* JSObject::TransitionElementsKind(ElementsKind to_kind) { |
to_kind = GetHoleyElementsKind(to_kind); |
} |
+ if (from_kind == to_kind) return this; |
+ |
Isolate* isolate = GetIsolate(); |
if (elements() == isolate->heap()->empty_fixed_array() || |
(IsFastSmiOrObjectElementsKind(from_kind) && |