if (!nativeThis) return JS_FALSE;
InstallGestalt(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval){  nsInstall *nativeThis =    (nsInstall*)JS_GetInstancePrivate(cx, obj, &InstallClass, argv);  if (!nativeThis)    return JS_FALSE;  PRInt32 nativeRet;  nsAutoString b0;  *rval = INT_TO_JSVAL(nsInstall::UNEXPECTED_ERROR);  // If there's no private data, this must be the prototype, so ignore  if (nsnull == nativeThis) {    return JS_TRUE;  }  if(argc >= 1)  {    //  public int Gestalt ( String selector,    //                       long   *response);    ConvertJSValToStr(b0, cx, argv[0]);    if(NS_OK != nativeThis->Gestalt(b0, &nativeRet))    {      return JS_FALSE;    }    *rval = INT_TO_JSVAL(nativeRet);  }  else  {    JS_ReportError(cx, "Function Gestalt requires 1 parameters");    return JS_FALSE;  }  return JS_TRUE;}