Bug 607695 - followup to fix bz comments

This commit is contained in:
Igor Bukanov 2010-11-15 12:42:45 +01:00
parent d34f057e79
commit 4e2a74333a
2 changed files with 2 additions and 3 deletions

View File

@ -610,8 +610,7 @@ XPCConvert::JSData2Native(XPCCallContext& ccx, void* d, jsval s,
case nsXPTType::T_CHAR :
{
JSString* str = JS_ValueToString(cx, s);
if(str)
if(!str)
{
return JS_FALSE;
}

View File

@ -535,7 +535,7 @@ static JSBool
ThrowCallFailed(JSContext *cx, nsresult rv,
const char *ifaceName, jsid memberId, const char *memberName)
{
/* Only one memberId or memberName should be given. */
/* Only one of memberId or memberName should be given. */
JS_ASSERT(JSID_IS_VOID(memberId) != !memberName);
// From XPCThrower::ThrowBadResult.