Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 421fa27721afa105bb4041cd4b5e3f247293db2e..5ccb8b31ba1eae3b93e90b47f5eaeecf3837704e 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10385,8 +10385,7 @@ void JSFunction::SetInstancePrototype(Handle<JSFunction> function, |
if (array_function->IsJSFunction() && |
*function == JSFunction::cast(*array_function)) { |
CacheInitialJSArrayMaps(native_context, new_map); |
- Handle<Map> new_strong_map = |
- Map::Copy(initial_map, "SetInstancePrototype"); |
+ Handle<Map> new_strong_map = Map::Copy(new_map, "SetInstancePrototype"); |
new_strong_map->set_is_strong(); |
CacheInitialJSArrayMaps(native_context, new_strong_map); |
} |