gecko-dev/docs/code-quality
Ian Moody a52653c73c Bug 1536556 - Extend no-throw-cr-literal ESLint rule to forbid and fix `throw new Error(Cr.ERROR);`. r=Standard8
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
2020-05-05 17:43:39 +00:00
..
coding-style Bug 1625855 - Replace MOZ_MUST_USE with [[nodiscard]] in some Servo Rust code. r=emilio 2020-04-02 08:27:59 +00:00
lint Bug 1536556 - Extend no-throw-cr-literal ESLint rule to forbid and fix `throw new Error(Cr.ERROR);`. r=Standard8 2020-05-05 17:43:39 +00:00
index.rst Bug 1620635 - doc follow up - fix a typo DONTBUILD 2020-03-07 12:13:02 +00:00
static-analysis.rst no bug - static analysis doc: Fix a trivial rst typo in the doc 2020-04-18 10:55:15 +00:00