Bug 1138499, part 0 - Fix code spuriously using JSPROP_READONLY when defining an accessor property. r=Waldo.

This commit is contained in:
Jason Orendorff 2015-03-23 16:36:43 -05:00
parent 6ffcb02f8a
commit 149449abad

View File

@ -7264,7 +7264,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;
@ -7294,7 +7294,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;