diff --git a/js/xpconnect/wrappers/WrapperFactory.cpp b/js/xpconnect/wrappers/WrapperFactory.cpp index ebefcacaa48c..a71f13d03fc6 100644 --- a/js/xpconnect/wrappers/WrapperFactory.cpp +++ b/js/xpconnect/wrappers/WrapperFactory.cpp @@ -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;