Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index a0e7b7af629a6ea6df1187fa31a75d73937a642a..6969edea108eac8c4fbaa4f9c08ebfc4f35ea0d4 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1016,6 +1016,11 @@ void Genesis::InitializeGlobal(Handle<GlobalObject> global_object, |
ArrayConstructorStub array_constructor_stub(isolate); |
Handle<Code> code = array_constructor_stub.GetCode(); |
array_function->shared()->set_construct_stub(*code); |
+ |
+ Handle<Map> initial_strong_map = |
+ Map::Copy(initial_map, "SetInstancePrototype"); |
+ initial_strong_map->set_is_strong(true); |
+ CacheInitialJSArrayMaps(native_context(), initial_strong_map); |
} |
{ // --- N u m b e r --- |