Bug 952660, part 5 - The null check at the end of nsXPCWrappedJS::GetNewOrUsed will always fail. r=bholley

This commit is contained in:
Andrew McCreight 2014-01-02 11:33:41 -08:00
parent 20b1ae972d
commit 84a36ae02a

View File

@ -387,10 +387,10 @@ nsXPCWrappedJS::GetNewOrUsed(JS::HandleObject jsObj,
}
// at this point we have a root and may need to build the specific wrapper
MOZ_ASSERT(root,"bad root");
MOZ_ASSERT(clazz,"bad clazz");
MOZ_ASSERT(root, "bad root");
MOZ_ASSERT(clazz, "bad clazz");
MOZ_ASSERT(!wrapper, "no wrapper found yet");
if (!wrapper)
wrapper = new nsXPCWrappedJS(cx, jsObj, clazz, root);
wrapper->mNext = root->mNext;