Closed
Bug 589958
Opened 15 years ago
Closed 15 years ago
produce constant error codes on throw
Categories
(Mozilla Labs :: Doctor JS, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dherman, Assigned: dimvar)
References
Details
We should define some error constants that get added as a property to error objects thrown by the core analysis. That way DrJS can produce user-friendly error messages for each code.
Dave
| Assignee | ||
Comment 1•15 years ago
|
||
added two error codes in the jscfa errors:
0: UNHANDLED_CONSTRUCT
1: CFA_ERROR
jscfa gets an AST, so if a user submits code that makes jsparse throw, that error won't have a code property. You can check for those errors and also classify them as UNHANDLED_CONSTRUCT.
| Assignee | ||
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•