if (NS_OK != nativeThis->AddCellToSelection(b0)) { return JS_FALSE;
result = nativeThis->AddCellToSelection(b0); if (NS_FAILED(result)) { return nsJSUtils::nsReportError(cx, result);
XULTreeElementAddCellToSelection(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval){  nsIDOMXULTreeElement *nativeThis = (nsIDOMXULTreeElement*)nsJSUtils::nsGetNativeThis(cx, obj);  nsIDOMXULElementPtr b0;  *rval = JSVAL_NULL;  nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx);  nsCOMPtr<nsIScriptSecurityManager> secMan;  if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) {    return JS_FALSE;  }  {    PRBool ok;    secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.addcelltoselection",PR_FALSE , &ok);    if (!ok) {      //Need to throw error here      return JS_FALSE;    }  }  // If there's no private data, this must be the prototype, so ignore  if (nsnull == nativeThis) {    return JS_TRUE;  }  {    if (argc < 1) {      JS_ReportError(cx, "Function addCellToSelection requires 1 parameter");      return JS_FALSE;    }    if (JS_FALSE == nsJSUtils::nsConvertJSValToObject((nsISupports **)&b0,                                           kIXULElementIID,                                           "XULElement",                                           cx,                                           argv[0])) {      return JS_FALSE;    }    if (NS_OK != nativeThis->AddCellToSelection(b0)) {      return JS_FALSE;    }    *rval = JSVAL_VOID;  }  return JS_TRUE;}