mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 711288 - Unconditionally use the new value of JSPROP_READONLY in accessor -> data transformations. r=Waldo
This commit is contained in:
parent
54c1bfce65
commit
6fbf6cf8f6
@ -2331,7 +2331,8 @@ DefinePropertyOnObject(JSContext *cx, JSObject *obj, const jsid &id, const PropD
|
||||
unchanged |= JSPROP_PERMANENT;
|
||||
if (!desc.hasEnumerable)
|
||||
unchanged |= JSPROP_ENUMERATE;
|
||||
if (!desc.hasWritable)
|
||||
/* Watch out for accessor -> data transformations here. */
|
||||
if (!desc.hasWritable && shape->isDataDescriptor())
|
||||
unchanged |= JSPROP_READONLY;
|
||||
|
||||
if (desc.hasValue)
|
||||
|
Loading…
Reference in New Issue
Block a user