mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 714279 - range.compareBoundaryPoints should throw NOT_SUPPORTED_ERR when called with an invalid 'how' argument; r=smaug
This commit is contained in:
parent
e9d8d3dbea
commit
dadd37a9b3
@ -1839,7 +1839,7 @@ nsRange::CompareBoundaryPoints(PRUint16 aHow, nsIDOMRange* aOtherRange,
|
||||
break;
|
||||
default:
|
||||
// We were passed an illegal value
|
||||
return NS_ERROR_ILLEGAL_VALUE;
|
||||
return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
|
||||
}
|
||||
|
||||
if (mRoot != otherRange->GetRoot())
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user