From 890e5a1254c21f456592bc6fc54966e8d231e27b Mon Sep 17 00:00:00 2001 From: Jason Orendorff Date: Mon, 23 Mar 2015 16:36:43 -0500 Subject: [PATCH] Bug 1138499, part 0 - Fix code spuriously using JSPROP_READONLY when defining an accessor property. r=Waldo. --- js/src/jsgc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/jsgc.cpp b/js/src/jsgc.cpp index 54e58e16de1..5309335a7bf 100644 --- a/js/src/jsgc.cpp +++ b/js/src/jsgc.cpp @@ -7265,7 +7265,7 @@ NewMemoryInfoObject(JSContext* cx) for (size_t i = 0; i < mozilla::ArrayLength(getters); i++) { if (!JS_DefineProperty(cx, obj, getters[i].name, UndefinedHandleValue, - JSPROP_READONLY | JSPROP_SHARED | JSPROP_ENUMERATE, + JSPROP_ENUMERATE | JSPROP_SHARED, getters[i].getter, nullptr)) { return nullptr; @@ -7295,7 +7295,7 @@ NewMemoryInfoObject(JSContext* cx) for (size_t i = 0; i < mozilla::ArrayLength(zoneGetters); i++) { if (!JS_DefineProperty(cx, zoneObj, zoneGetters[i].name, UndefinedHandleValue, - JSPROP_READONLY | JSPROP_SHARED | JSPROP_ENUMERATE, + JSPROP_ENUMERATE | JSPROP_SHARED, zoneGetters[i].getter, nullptr)) { return nullptr;