mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Quick followup to last checkin, to optimize OBJ_DROP_PROPERTY to JS_UNLOCK_SCOPE in the one place in js_SetProperty that didn't follow the comments and do that.
This commit is contained in:
parent
fd011d535b
commit
40334ba064
@ -2614,7 +2614,7 @@ js_SetProperty(JSContext *cx, JSObject *obj, jsid id, jsval *vp)
|
||||
|
||||
attrs = sprop->attrs;
|
||||
if ((attrs & JSPROP_READONLY) || SCOPE_IS_SEALED(scope)) {
|
||||
OBJ_DROP_PROPERTY(cx, pobj, (JSProperty *)sprop);
|
||||
JS_UNLOCK_SCOPE(cx, scope);
|
||||
if ((attrs & JSPROP_READONLY) && JSVERSION_IS_ECMA(cx->version))
|
||||
return JS_TRUE;
|
||||
goto read_only_error;
|
||||
|
Loading…
Reference in New Issue
Block a user