Revision: 21333
Author:   [email protected]
Date:     Thu May 15 14:13:59 2014 UTC
Log:      Ensure that collection iterators' maps have constructors

This fixes JSObject::GetCreationContext() for such iterators.

[email protected]

Review URL: https://codereview.chromium.org/288233002
http://code.google.com/p/v8/source/detail?r=21333

Modified:
 /branches/bleeding_edge/src/bootstrapper.cc

=======================================
--- /branches/bleeding_edge/src/bootstrapper.cc Wed May 14 08:51:10 2014 UTC
+++ /branches/bleeding_edge/src/bootstrapper.cc Thu May 15 14:13:59 2014 UTC
@@ -1314,11 +1314,13 @@
     {   // -- S e t I t e r a t o r
       Handle<Map> map = isolate()->factory()->NewMap(
           JS_SET_ITERATOR_TYPE, JSSetIterator::kSize);
+      map->set_constructor(native_context()->closure());
       native_context()->set_set_iterator_map(*map);
     }
     {   // -- M a p I t e r a t o r
       Handle<Map> map = isolate()->factory()->NewMap(
           JS_MAP_ITERATOR_TYPE, JSMapIterator::kSize);
+      map->set_constructor(native_context()->closure());
       native_context()->set_map_iterator_map(*map);
     }
   }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to