mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 952660, part 5 - The null check at the end of nsXPCWrappedJS::GetNewOrUsed will always fail. r=bholley
This commit is contained in:
parent
20b1ae972d
commit
84a36ae02a
@ -387,11 +387,11 @@ 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 = new nsXPCWrappedJS(cx, jsObj, clazz, root);
|
||||
|
||||
wrapper->mNext = root->mNext;
|
||||
root->mNext = wrapper;
|
||||
|
Loading…
Reference in New Issue
Block a user