mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
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:
parent
b920af5de8
commit
d75591e16f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user