зеркало из https://github.com/mozilla/gecko-dev.git
Bug 711288 - Unconditionally use the new value of JSPROP_READONLY in accessor -> data transformations. r=Waldo
This commit is contained in:
Родитель
54c1bfce65
Коммит
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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче