Reviewers: fschneider,

Description:
Merge r6068 to the 2.4 branch: Fix problem with readonly properties in
prototypes of context extension objects.


Please review this at http://codereview.chromium.org/6001001/

SVN Base: http://v8.googlecode.com/svn/branches/2.4/

Affected files:
  M     src/runtime.cc
  M     src/version.cc
  A  +  test/mjsunit/with-readonly.js


### BEGIN SVN COPY METADATA
#$ cp branches/bleeding_edge/test/mjsunit/with-readonly.js test/mjsunit/with-readonly.js
### END SVN COPY METADATA
Index: src/runtime.cc
===================================================================
--- src/runtime.cc      (revision 6068)
+++ src/runtime.cc      (working copy)
@@ -6649,7 +6649,7 @@
   // extension object itself.
   if ((attributes & READ_ONLY) == 0 ||
       (context_ext->GetLocalPropertyAttribute(*name) == ABSENT)) {
-    Handle<Object> set = SetProperty(context_ext, name, value, attributes);
+    Handle<Object> set = SetProperty(context_ext, name, value, NONE);
     if (set.is_null()) {
       // Failure::Exception is converted to a null handle in the
       // handle-based methods such as SetProperty.  We therefore need
Index: src/version.cc
===================================================================
--- src/version.cc      (revision 6068)
+++ src/version.cc      (working copy)
@@ -35,7 +35,7 @@
 #define MAJOR_VERSION     2
 #define MINOR_VERSION     4
 #define BUILD_NUMBER      9
-#define PATCH_LEVEL       16
+#define PATCH_LEVEL       17
 #define CANDIDATE_VERSION false

 // Define SONAME to have the SCons build the put a specific SONAME into the
Index: test/mjsunit/with-readonly.js


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to