bug 491115 - asserting in js_SetProtoOrParent only when not detecting cycles. r=brendan

This commit is contained in:
Igor Bukanov 2009-05-02 20:49:45 +02:00
Родитель 18c4dc1df6
Коммит 20d86db12c
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -283,7 +283,7 @@ js_SetProtoOrParent(JSContext *cx, JSObject *obj, uint32 slot, JSObject *pobj,
JSBool checkForCycles)
{
JS_ASSERT(slot == JSSLOT_PARENT || slot == JSSLOT_PROTO);
JS_ASSERT(obj != pobj);
JS_ASSERT_IF(!checkForCycles, obj != pobj);
if (slot == JSSLOT_PROTO) {
JS_UNLOCK_OBJ(cx, obj);