nsXPCWrappedJS::GetJSObject(JSObject** aJSObj) { NS_PRECONDITION(aJSObj, "bad param"); NS_PRECONDITION(mJSObj, "bad wrapper"); if(!(*aJSObj = mJSObj)) return NS_ERROR_OUT_OF_MEMORY; return NS_OK; }
JSObject*           GetJSObject()  const {return mJSObject;}
nsXPCWrappedJS::GetJSObject(JSObject** aJSObj){    NS_PRECONDITION(aJSObj, "bad param");    NS_PRECONDITION(mJSObj, "bad wrapper");    if(!(*aJSObj = mJSObj))        return NS_ERROR_OUT_OF_MEMORY;    return NS_OK;}