Backed out changeset c696751593d6. Tolerate race condition or broken resolve hook (530507, r=jorendorff).

This commit is contained in:
Robert Sayre 2009-12-01 09:54:38 -05:00
parent 5120898335
commit 5d08f03267

View File

@ -4759,7 +4759,7 @@ js_SetPropertyHelper(JSContext *cx, JSObject *obj, jsid id, uintN defineHow,
}
}
sprop = scope->putProperty(cx, id, getter, setter, SPROP_INVALID_SLOT,
sprop = scope->addProperty(cx, id, getter, setter, SPROP_INVALID_SLOT,
attrs, flags, shortid);
if (!sprop) {
JS_UNLOCK_SCOPE(cx, scope);