Bug 921454 - Invert faulty assertion. r=jonco

This assertion is pretty clearly bogus, and only exists because, as it turns
out, we never had any test coverage for transplanting SCSW objects with
waivers. Even in the world when this stuff landed (bug 773962, which was well
before the removal of Location SCSWs in bug 808608 and the conversion of Nodes
to new bindings), we apparently never tested the waiver path. :-(
This commit is contained in:
Bobby Holley 2013-10-04 13:29:36 +02:00
Родитель b920af5de8
Коммит d75591e16f
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -680,7 +680,7 @@ TransplantObjectWithWrapper(JSContext *cx,
return newSameCompartmentWrapper;
RootedObject newIdentity(cx, Wrapper::wrappedObject(newSameCompartmentWrapper));
MOZ_ASSERT(js::IsWrapper(newIdentity));
MOZ_ASSERT(!js::IsWrapper(newIdentity));
if (!FixWaiverAfterTransplant(cx, oldWaiver, newIdentity))
return NULL;
return newSameCompartmentWrapper;