mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Make nsFind::Find actually use a string type as input.
Futureproofing follow-up to b89570e31cfb84449241e363a595540b8810c217
This commit is contained in:
parent
ad95798269
commit
d7fad8539b
5 changed files with 4 additions and 22 deletions
|
|
@ -33,20 +33,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=450048
|
|||
var startPt = searchRange;
|
||||
var endPt = searchRange;
|
||||
|
||||
// Check |null| detection on |aPatText| parameter.
|
||||
try {
|
||||
rf.Find(null, searchRange, startPt, endPt);
|
||||
|
||||
ok(false, "Missing NS_ERROR_NULL_POINTER exception");
|
||||
} catch (e) {
|
||||
e = SpecialPowers.wrap(e);
|
||||
if (e.result == SpecialPowers.Cr.NS_ERROR_NULL_POINTER) {
|
||||
ok(true, null);
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
// Check |null| detection on |aSearchRange| parameter.
|
||||
try {
|
||||
rf.Find("", null, startPt, endPt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue