| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index b0d3a5e50eedb2d662139642b2af315e3152be94..105993ded0ae08d9432754e8f1b7fa531650f70f 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -482,6 +482,10 @@ Handle<JSFunction> Genesis::CreateEmptyFunction(Isolate* isolate) {
|
| TENURED);
|
|
|
| native_context()->set_initial_object_prototype(*prototype);
|
| + // For boostrapping set the array prototype to be the same as the object
|
| + // prototype, otherwise the missing initial_array_prototype will cause
|
| + // assertions during startup.
|
| + native_context()->set_initial_array_prototype(*prototype);
|
| SetPrototype(object_fun, prototype);
|
| }
|
|
|
| @@ -2381,6 +2385,10 @@ bool Genesis::ConfigureGlobalObjects(
|
| }
|
|
|
| SetObjectPrototype(global_proxy, inner_global);
|
| +
|
| + native_context()->set_initial_array_prototype(
|
| + JSArray::cast(native_context()->array_function()->prototype()));
|
| +
|
| return true;
|
| }
|
|
|
|
|