*rval = JSVAL_NULL;
*rval = INT_TO_JSVAL(nsInstall::UNEXPECTED_ERROR);
InstallFileOpDirRemove(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval){  nsInstall *nativeThis = (nsInstall*)JS_GetPrivate(cx, obj);  PRInt32 nativeRet;  nsAutoString b0;  PRBool       b1;  *rval = JSVAL_NULL;  // If there's no private data, this must be the prototype, so ignore  if(nsnull == nativeThis)  {    return JS_TRUE;  }  if(argc >= 2)  {    //  public int DirRemove (String aNativeFolderPath,    //                        Bool   aRecursive);    ConvertJSValToStr(b0, cx, argv[0]);    nsFileSpec fsB0(b0);    if(!ConvertJSValToBool(&b1, cx, argv[1]))    {      JS_ReportError(cx, "2nd parameter needs to be a Boolean value");      return JS_FALSE;    }    if(NS_OK != nativeThis->FileOpDirRemove(fsB0, b1, &nativeRet))    {      return JS_FALSE;    }    *rval = INT_TO_JSVAL(nativeRet);  }  else  {    JS_ReportError(cx, "Function DirRemove requires 2 parameters");    return JS_FALSE;  }  return JS_TRUE;}