Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 5116a6a0a528b8da81d8f1b226a9b5bd9082fe5f..023510cb5d34fb140e4a802eab5d9c8f43213c9e 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -7288,6 +7288,7 @@ Handle<Map> Map::CopyForObserved(Handle<Map> map) { |
Handle<Map> Map::CopyAsPrototypeMap(Handle<Map> map) { |
+ if (map->is_prototype_map()) return map; |
Handle<Map> result = Copy(map); |
result->mark_prototype_map(); |
return result; |