mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1138499, part 0 - Fix code spuriously using JSPROP_READONLY when defining an accessor property. r=Waldo.
This commit is contained in:
parent
6ffcb02f8a
commit
149449abad
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user