return JS_FALSE;
return nsJSUtils::nsReportError(cx, result);
GetXULTreeElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp){  nsIDOMXULTreeElement *a = (nsIDOMXULTreeElement*)nsJSUtils::nsGetNativeThis(cx, obj);  // If there's no private data, this must be the prototype, so ignore  if (nsnull == a) {    return JS_TRUE;  }  if (JSVAL_IS_INT(id)) {    nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx);    nsCOMPtr<nsIScriptSecurityManager> secMan;    if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) {      return JS_FALSE;    }    switch(JSVAL_TO_INT(id)) {      case XULTREEELEMENT_SELECTEDITEMS:      {        PRBool ok = PR_FALSE;        secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selecteditems", PR_FALSE, &ok);        if (!ok) {          //Need to throw error here          return JS_FALSE;        }        nsIDOMNodeList* prop;        if (NS_SUCCEEDED(a->GetSelectedItems(&prop))) {          // get the js object          nsJSUtils::nsConvertObjectToJSVal((nsISupports *)prop, cx, vp);        }        else {          return JS_FALSE;        }        break;      }      case XULTREEELEMENT_SELECTEDCELLS:      {        PRBool ok = PR_FALSE;        secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selectedcells", PR_FALSE, &ok);        if (!ok) {          //Need to throw error here          return JS_FALSE;        }        nsIDOMNodeList* prop;        if (NS_SUCCEEDED(a->GetSelectedCells(&prop))) {          // get the js object          nsJSUtils::nsConvertObjectToJSVal((nsISupports *)prop, cx, vp);        }        else {          return JS_FALSE;        }        break;      }      default:        return nsJSUtils::nsCallJSScriptObjectGetProperty(a, cx, id, vp);    }  }  else {    return nsJSUtils::nsCallJSScriptObjectGetProperty(a, cx, id, vp);  }  return PR_TRUE;}