Tolerate race condition or broken resolve hook (530507, r=jorendorff).

This commit is contained in:
Brendan Eich 2009-11-25 13:49:15 -08:00
parent ca11206be2
commit 256dffda46

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