mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 07:01:19 +00:00
Remove assertion from nsRDFDOMNodeList::Item(); it was being triggered from JS, and it really isn't a "fatal" program condition.
This commit is contained in:
parent
2a564f20c4
commit
e3393dd236
@ -158,7 +158,7 @@ nsRDFDOMNodeList::Item(PRUint32 aIndex, nsIDOMNode** aReturn)
|
||||
PRUint32 cnt;
|
||||
nsresult rv = mElements->Count(&cnt);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
NS_PRECONDITION(aIndex < cnt, "invalid arg");
|
||||
|
||||
if (aIndex >= (PRUint32) cnt)
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
|
||||
|
@ -158,7 +158,7 @@ nsRDFDOMNodeList::Item(PRUint32 aIndex, nsIDOMNode** aReturn)
|
||||
PRUint32 cnt;
|
||||
nsresult rv = mElements->Count(&cnt);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
NS_PRECONDITION(aIndex < cnt, "invalid arg");
|
||||
|
||||
if (aIndex >= (PRUint32) cnt)
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user