Backed out changeset 6403c45366e0 (bug 1257919)
This commit is contained in:
@@ -400,7 +400,7 @@ Exception::GetData(nsISupports** aData)
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
Exception::ToString(JSContext* aCx, nsACString& _retval)
|
||||
Exception::ToString(nsACString& _retval)
|
||||
{
|
||||
NS_ENSURE_TRUE(mInitialized, NS_ERROR_NOT_INITIALIZED);
|
||||
|
||||
@@ -413,7 +413,7 @@ Exception::ToString(JSContext* aCx, nsACString& _retval)
|
||||
|
||||
if (mLocation) {
|
||||
// we need to free this if it does not fail
|
||||
nsresult rv = mLocation->ToString(aCx, location);
|
||||
nsresult rv = mLocation->ToString(location);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
@@ -547,13 +547,13 @@ Exception::GetStack(nsAString& aStack, ErrorResult& aRv) const
|
||||
}
|
||||
|
||||
void
|
||||
Exception::Stringify(JSContext* aCx, nsString& retval)
|
||||
Exception::Stringify(nsString& retval)
|
||||
{
|
||||
nsCString str;
|
||||
#ifdef DEBUG
|
||||
DebugOnly<nsresult> rv =
|
||||
#endif
|
||||
ToString(aCx, str);
|
||||
ToString(str);
|
||||
MOZ_ASSERT(NS_SUCCEEDED(rv));
|
||||
CopyUTF8toUTF16(str, retval);
|
||||
}
|
||||
@@ -592,7 +592,7 @@ DOMException::GetCode(uint16_t* aCode)
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
DOMException::ToString(JSContext* aCx, nsACString& aReturn)
|
||||
DOMException::ToString(nsACString& aReturn)
|
||||
{
|
||||
aReturn.Truncate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user