Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index c1f611404aea5b2e3d593a78cee94dbe1277a9af..10d44338f8e030c80dddfc06f194e51fdcf44bfa 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; |