Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 1d7c6726e68199946c951c41d723ebb4121ae8ef..aa6e2808b46d283c5178cbff07f05da6db8ebdbd 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -11559,7 +11559,7 @@ Handle<Map> Map::PutPrototypeTransition(Handle<Map> map, |
cache->set(entry + kProtoTransitionPrototypeOffset, *prototype); |
cache->set(entry + kProtoTransitionMapOffset, *target_map); |
- map->SetNumberOfProtoTransitions(transitions); |
+ map->SetNumberOfProtoTransitions(last + 1); |
return map; |
} |