Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 2f8aec5631e6c21f4814dda2e5b0503670738c80..b4dece00ebf60bae9d9e456e466f21910d0067d5 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10368,8 +10368,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); |
} |