blob: 9f5a0def2732b03b1741f49f5ab0ae998b038b65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
no-cu-reportError
=================
Disallows Cu.reportError. This has been deprecated and should be replaced by
console.error.
Examples of incorrect code for this rule:
-----------------------------------------
.. code-block:: js
Cu.reportError("message");
Cu.reportError("message", stack);
Examples of correct code for this rule:
---------------------------------------
.. code-block:: js
console.error("message");
let error = new Error("message");
error.stack = stack;
console.error(error);
|