Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 5abd954972aa610d3e8fca32a9c473249bb7c412..65b21e09bc5fbe43a5029c05894238ee20aaf97d 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1176,6 +1176,8 @@ void Genesis::InitializeGlobal(Handle<GlobalObject> global_object, |
JSGeneratorObject::kResultPropertyCount); |
iterator_result_map->set_pre_allocated_property_fields( |
JSGeneratorObject::kResultPropertyCount); |
+ iterator_result_map->set_visitor_id( |
+ StaticVisitorBase::GetVisitorId(*iterator_result_map)); |
DCHECK_EQ(JSGeneratorObject::kResultSize, |
iterator_result_map->instance_size()); |
native_context()->set_iterator_result_map(*iterator_result_map); |