nsIRDFInt *aInt = (nsIRDFInt *) JS_GetPrivate(cx, jsaInt);
nsIRDFInt_EqualsInt(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval){  nsIRDFInt *priv = (nsIRDFInt *)JS_GetPrivate(cx, obj);  if (!priv)    return JS_TRUE;  nsIRDFInt *aInt;  if (!JS_ConvertArguments(cx, argc, argv, "o", &aInt))    return JS_FALSE;  PRBool retval;  nsresult rv = priv->EqualsInt(aInt, &retval);  if (NS_FAILED(rv)) {    JS_ReportError(cx, XXXnsresult2string(rv));    return JS_FALSE;  }  *rval = BOOLEAN_TO_JSVAL(retval);  return JS_TRUE;}