Closed Bug 1945457 Opened 16 days ago Closed 13 days ago

Improve the definition for Components.Exceptions (Fix errors such as Type '2147500037' has no properties in common with type 'ErrorOptions')

Categories

(Developer Infrastructure :: Lint and Formatting, task, P3)

Tracking

(firefox137 fixed)

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

On the toolkit/components/search code, I've been seeing a lot of errors like:

toolkit/components/search/SearchService.sys.mjs:2938:11 - error TS2559: Type '2147500037' has no properties in common with type 'ErrorOptions'.

2938           Cr.NS_ERROR_FAILURE
               ~~~~~~~~~~~~~~~~~~~

These are due to the definition of Components.Exceptions in the type script overrides, assuming an Error like object, when in fact they are a complex set of arguments.

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dbe8a3a2a81e Implement full TypeScript definition for Components.Exception. r=zombie
Status: NEW → RESOLVED
Closed: 13 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: