зеркало из https://github.com/mozilla/gecko-dev.git
bug 491115 - asserting in js_SetProtoOrParent only when not detecting cycles. r=brendan
This commit is contained in:
Родитель
18c4dc1df6
Коммит
20d86db12c
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче