bug 382744 - Correct backwards assertion check in XPCNativeScriptableInfo. Patch by Manish Singh <manish@flock.com>, r=dbaron, sr=shaver

This commit is contained in:
mattwillis@gmail.com 2007-06-05 08:59:44 -07:00
parent 0cc2fca501
commit 3932303027

View File

@ -1305,8 +1305,8 @@ XPCNativeScriptableInfo::Construct(XPCCallContext& ccx,
JSBool isGlobal,
const XPCNativeScriptableCreateInfo* sci)
{
NS_ASSERTION(sci->GetCallback(), "bad param");
NS_ASSERTION(sci, "bad param");
NS_ASSERTION(sci->GetCallback(), "bad param");
XPCNativeScriptableInfo* newObj =
new XPCNativeScriptableInfo(sci->GetCallback());