зеркало из https://github.com/mozilla/gecko-dev.git
67797: add Components.isSuccessCode (r=jag, sr=jband)
This commit is contained in:
Родитель
af55fd8718
Коммит
40f315f196
|
@ -130,6 +130,7 @@ interface nsIXPCComponents : nsISupports
|
|||
readonly attribute nsIXPCComponents_Exception Exception;
|
||||
readonly attribute nsIXPCComponents_Constructor Constructor;
|
||||
|
||||
boolean isSuccessCode(in nsresult result);
|
||||
/* 'lastResult' is accessable via JavaScript only */
|
||||
/* 'returnCode' is accessable via JavaScript only */
|
||||
};
|
||||
|
|
|
@ -1919,6 +1919,13 @@ XPC_IMPL_GET_OBJ_METHOD(Constructor);
|
|||
#undef XPC_IMPL_GET_OBJ_METHOD
|
||||
/*******************************************/
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXPCComponents::IsSuccessCode(nsresult result, PRBool *out)
|
||||
{
|
||||
*out = NS_SUCCEEDED(result);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXPCComponents::GetStack(nsIJSStackFrameLocation * *aStack)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче