forked from mirrors/gecko-dev
Code should be using `throw Components.Exception("", Cr.ERROR);` instead,
since `new Error()` just converts the int value of the Cr.ERROR into a string,
whereas `Exception` constructs an Exception object with the result property set
to the Cr.ERROR value, so other code can identify it.
Differential Revision: https://phabricator.services.mozilla.com/D28074
|
||
|---|---|---|
| .. | ||
| coding-style | ||
| lint | ||
| index.rst | ||
| static-analysis.rst | ||