This disables caughtErrors from everywhere. This is enabled by default in v9. We should work to enable this later. This also changes the exported comments - ESLint is more strict about what it can handle, and doesn't like a star in the middle of the comment. Also tidies up some rules where they are no longer needed. Differential Revision: https://phabricator.services.mozilla.com/D251253
37 lines
377 B
JavaScript
37 lines
377 B
JavaScript
"use strict";
|
|
/* exported arithmetic, composition, chaining, nested */
|
|
|
|
const obj = { b };
|
|
|
|
function a() {
|
|
return obj;
|
|
}
|
|
|
|
function b() {
|
|
return 2;
|
|
}
|
|
|
|
function arithmetic() {
|
|
debugger;
|
|
a() + b();
|
|
}
|
|
|
|
function composition() {
|
|
debugger;
|
|
b(a());
|
|
}
|
|
|
|
function chaining() {
|
|
debugger;
|
|
a().b();
|
|
}
|
|
|
|
function c() {
|
|
return b();
|
|
}
|
|
|
|
function nested() {
|
|
debugger;
|
|
c();
|
|
}
|