nsIRDFLiteral *aLiteral = (nsIRDFLiteral *) JS_GetPrivate(cx, jsaLiteral);
nsIRDFLiteral_EqualsLiteral(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval){  nsIRDFLiteral *priv = (nsIRDFLiteral *)JS_GetPrivate(cx, obj);  if (!priv)    return JS_TRUE;  nsIRDFLiteral *aLiteral;  if (!JS_ConvertArguments(cx, argc, argv, "o", &aLiteral))    return JS_FALSE;  PRBool retval;  nsresult rv = priv->EqualsLiteral(aLiteral, &retval);  if (NS_FAILED(rv)) {    JS_ReportError(cx, XXXnsresult2string(rv));    return JS_FALSE;  }  *rval = BOOLEAN_TO_JSVAL(retval);  return JS_TRUE;}