mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
Don't override a prototype property iff it is JSPROP_SHARED (not also if it's a JSPROP_SETTER; 197940, r=rogerl).
This commit is contained in:
parent
4a82c99291
commit
c0fc066a01
@ -2620,8 +2620,8 @@ js_SetProperty(JSContext *cx, JSObject *obj, jsid id, jsval *vp)
|
||||
}
|
||||
|
||||
if (pobj != obj) {
|
||||
/* Don't clone a setter or shared prototype property. */
|
||||
if (attrs & (JSPROP_SETTER | JSPROP_SHARED)) {
|
||||
/* Don't clone a shared prototype property. */
|
||||
if (attrs & JSPROP_SHARED) {
|
||||
JS_UNLOCK_SCOPE(cx, scope);
|
||||
|
||||
return SPROP_SET(cx, sprop, obj, pobj, vp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user