Made the prototype property of functions enumerable.


git-svn-id: http://v8.googlecode.com/svn/branches/0.1@11 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/ChangeLog b/ChangeLog
index 588a207..065890f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-11: Version 0.1.5 (130240)
+
+        Made the prototype property of functions enumerable.
+
+
 2008-07-28: Version 0.1.4 (128918)
 
         Added support for storing JavaScript stack traces in a stack
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 3606bc7..73ff4ec 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1209,11 +1209,11 @@
 
 void Genesis::MakeFunctionInstancePrototypeWritable() {
   // Make a new function map so all future functions
-  // will have settable prototype properties.
+  // will have settable and enumerable prototype properties.
   HandleScope scope;
 
   Handle<DescriptorArray> function_map_descriptors =
-      ComputeFunctionInstanceDescriptor(false);
+      ComputeFunctionInstanceDescriptor(false, true);
   Handle<Map> fm = Factory::CopyMap(Top::function_map());
   fm->set_instance_descriptors(*function_map_descriptors);
   Top::context()->global_context()->set_function_map(*fm);