result = nativeThis->Open(cx, argv+0, argc-0);
result = nativeThis->Open(cx, argv+0, argc-0, &nativeRet);
NSHTMLDocumentOpen(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval){  nsIDOMHTMLDocument *privateThis = (nsIDOMHTMLDocument*)nsJSUtils::nsGetNativeThis(cx, obj);  nsCOMPtr<nsIDOMNSHTMLDocument> nativeThis;  nsresult result = NS_OK;  if (NS_OK != privateThis->QueryInterface(kINSHTMLDocumentIID, getter_AddRefs(nativeThis))) {    return nsJSUtils::nsReportError(cx, obj, NS_ERROR_DOM_WRONG_TYPE_ERR);  }  // If there's no private data, this must be the prototype, so ignore  if (!nativeThis) {    return JS_TRUE;  }  {    *rval = JSVAL_NULL;    nsIScriptSecurityManager *secMan = nsJSUtils::nsGetSecurityManager(cx, obj);    if (!secMan)        return PR_FALSE;    result = secMan->CheckScriptAccess(cx, obj, NS_DOM_PROP_NSHTMLDOCUMENT_OPEN, PR_FALSE);    if (NS_FAILED(result)) {      return nsJSUtils::nsReportError(cx, obj, result);    }    result = nativeThis->Open(cx, argv+0, argc-0);    if (NS_FAILED(result)) {      return nsJSUtils::nsReportError(cx, obj, result);    }    *rval = JSVAL_VOID;  }  return JS_TRUE;}