Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 08f024f5a6d1d11df89c6ecf84e66f7e73f08092..8e345aee1ff9df434cb73231591ca575e98bbf9c 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1350,6 +1350,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) \ |