Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 74a16baa340fd46bf81554f510a0ee457e8341c9..9933e9c61497c8d3307ea4643cc96b65bc0eca07 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -7197,7 +7197,7 @@ class IntrusiveMapTransitionIterator { |
int value = Smi::cast(*IteratorField())->value(); |
int index = -value - 1; |
int number_of_transitions = transition_array_->number_of_transitions(); |
- while (index < number_of_transitions) { |
+ if (index < number_of_transitions) { |
*IteratorField() = Smi::FromInt(value - 1); |
return transition_array_->GetTarget(index); |
} |