Author: [email protected]
Date: Mon Mar 9 09:01:09 2009
New Revision: 1458
Modified:
trunk/src/api.cc
trunk/src/objects.cc
trunk/test/mjsunit/top-level-assignments.js
Log:
Push revision 1457 from bleeding_edge to trunk.
Modified: trunk/src/api.cc
==============================================================================
--- trunk/src/api.cc (original)
+++ trunk/src/api.cc Mon Mar 9 09:01:09 2009
@@ -2185,7 +2185,7 @@
const char* v8::V8::GetVersion() {
- return "1.0.3.5";
+ return "1.0.3.6";
}
Modified: trunk/src/objects.cc
==============================================================================
--- trunk/src/objects.cc (original)
+++ trunk/src/objects.cc Mon Mar 9 09:01:09 2009
@@ -2532,7 +2532,7 @@
if (ok->IsFailure()) return ok;
// Allocate the fixed array to hold getter and setter.
- Object* array = Heap::AllocateFixedArray(2);
+ Object* array = Heap::AllocateFixedArray(2, TENURED);
if (array->IsFailure()) return array;
// Update the dictionary with the new CALLBACKS property.
Modified: trunk/test/mjsunit/top-level-assignments.js
==============================================================================
--- trunk/test/mjsunit/top-level-assignments.js (original)
+++ trunk/test/mjsunit/top-level-assignments.js Mon Mar 9 09:01:09 2009
@@ -94,3 +94,14 @@
assertEquals(10, calc.difference());
assertEquals(200, calc.product());
assertEquals(2, calc.quotient());
+
+var x = new Object();
+x.__defineGetter__('a', function() { return 7 });
+x.b = function() { return 42; };
+x.c = 88;
+x.d = "A Man Called Horse";
+
+assertEquals(7, x.a);
+assertEquals(42, x.b());
+assertEquals(88, x.c);
+assertEquals("A Man Called Horse", x.d);
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---