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
Родитель ca11206be2
Коммит 256dffda46
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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); attrs, flags, shortid);
if (!sprop) { if (!sprop) {
JS_UNLOCK_SCOPE(cx, scope); JS_UNLOCK_SCOPE(cx, scope);