Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index c75961d4bb9357bbc2ca3d0720345813c71d1bb0..a32e3ad2a9a62c297aebe559286c16696888ffc4 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1349,6 +1349,11 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
array_iterator_function->shared()->set_instance_class_name( |
isolate->heap()->ArrayIterator_string()); |
+ native_context()->set_initial_array_iterator_prototype( |
+ *array_iterator_prototype); |
+ native_context()->set_initial_array_iterator_prototype_map( |
+ array_iterator_prototype->map()); |
+ |
Handle<Map> initial_map(array_iterator_function->initial_map(), isolate); |
#define ARRAY_ITERATOR_LIST(V) \ |