HomePhabricator Dev

Bug 1536556 - Add custom no-throw-cr-literal ESLint rule, and enable it by…

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Bug 1536556 - Add custom no-throw-cr-literal ESLint rule, and enable it by default. r=Standard8

This rule is based on the ESLint built-in no-throw-literal. Cr.ERRORs are also
literals since they are just integers and so have all the same disadvantages of
no stack info.

TestInterfaceJS.js is explicitly testing handling of throwing raw Cr.ERRORs and
thus needs to stay.

Differential Revision: https://phabricator.services.mozilla.com/D28072

Details

Provenance
KwanAuthored on

Commit No Longer Exists

This commit no longer exists in the repository.