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

This commit is contained in:
Robert Sayre 2009-12-01 15:54:01 -05:00
parent 5d08f03267
commit 03f335335d

View File

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