Open
Bug 1059706
Opened 10 years ago
Updated 2 years ago
[Toolkit] Throw errors, not strings or numbers
Categories
(Toolkit :: General, defect)
Toolkit
General
Tracking
()
NEW
People
(Reporter: Yoric, Unassigned, Mentored)
References
Details
Many items in toolkit/ call `throw Components.results.XXX` or even `throw someString`. This makes debugging much more complicated, as numbers/strings do not contain any stack information.
We should fix this.
I will mark this as a mentored good first bug, although we will want to decompose this into smaller bugs to simplify reviews and landing.
Comment 1•10 years ago
|
||
Hi,
I am interested in fixing this. I would be glad if you gave me more insight.
Thanks,
Rajat
Reporter | ||
Updated•10 years ago
|
Flags: needinfo?(dteller)
Reporter | ||
Updated•10 years ago
|
Reporter | ||
Comment 2•10 years ago
|
||
Thanks for your interest, Rajat. Let's start with bug 394686, which is a subset of this bug.
Reporter | ||
Updated•10 years ago
|
Comment 3•10 years ago
|
||
Is this causing problems in practice? I'm not opposed to fixing it, I'm just curious. Thanks.
Reporter | ||
Comment 4•10 years ago
|
||
Yeah, this kind of practice has been known to cause friggingly-hard-to-to-debug warnings, e.g. bug 1059329.
Reporter | ||
Comment 5•10 years ago
|
||
Removing the "mentored" status, as I have divided the bug into smaller (mentored) tasks.
Whiteboard: [lang=js][good first bug]
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•