PRInt32      nativeRet;
PRBool       nativeRet;
InstallTriggerGlobalStartSoftwareUpdate(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval){  nsIDOMInstallTriggerGlobal *nativeThis = (nsIDOMInstallTriggerGlobal*)JS_GetPrivate(cx, obj);  PRInt32      nativeRet;  nsAutoString b0;  PRInt32      b1 = 0;  *rval = JSVAL_FALSE;  // If there's no private data, this must be the prototype, so ignore  if (nsnull == nativeThis) {    return JS_TRUE;  }  if ( argc >= 1 )  {    ConvertJSValToStr(b0, cx, argv[0]);    if (argc >= 2 && !JS_ValueToInt32(cx, argv[1], (int32 *)&b1))    {        JS_ReportError(cx, "StartSoftwareUpdate() 2nd parameter must be a number");        return JS_FALSE;    }    if(NS_OK != nativeThis->StartSoftwareUpdate(b0, b1, &nativeRet))    {      return JS_FALSE;    }    *rval = INT_TO_JSVAL(nativeRet);  }  else  {    JS_ReportError(cx, "Function StartSoftwareUpdate requires 2 parameters");    return JS_FALSE;  }  return JS_TRUE;}