Bug 805052 part 1. Remove assertParentIs. r=waldo

This commit is contained in:
Boris Zbarsky
2015-03-14 01:36:17 -04:00
parent 535ec72ba4
commit 1f8be924ba
10 changed files with 1 additions and 21 deletions

View File

@@ -1885,8 +1885,6 @@ InitializePropertiesFromCompatibleNativeObject(JSContext *cx,
{
assertSameCompartment(cx, src, dst);
MOZ_ASSERT(src->getClass() == dst->getClass());
src->assertParentIs(cx->global());
dst->assertParentIs(cx->global());
MOZ_ASSERT(src->getProto() == dst->getProto());
MOZ_ASSERT(dst->lastProperty()->getObjectFlags() == 0);
MOZ_ASSERT(!src->getMetadata());
@@ -2339,7 +2337,6 @@ DefineStandardSlot(JSContext *cx, HandleObject obj, JSProtoKey key, JSAtom *atom
static void
SetClassObject(JSObject *obj, JSProtoKey key, JSObject *cobj, JSObject *proto)
{
obj->assertParentIs(nullptr);
if (!obj->is<GlobalObject>())
return;
@@ -2350,7 +2347,6 @@ SetClassObject(JSObject *obj, JSProtoKey key, JSObject *cobj, JSObject *proto)
static void
ClearClassObject(JSObject *obj, JSProtoKey key)
{
obj->assertParentIs(nullptr);
if (!obj->is<GlobalObject>())
return;