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:
brendan%mozilla.org 2003-04-14 03:26:47 +00:00
parent fd011d535b
commit 40334ba064

View File

@ -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;