Files
Mark Banner c46af4df18 Bug 1881702 - Fix no-unused-vars issues raised by the upgrade to ESLint v9. r=frontend-codestyle-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,devtools-reviewers,migration-reviewers,android-reviewers,webcompat-reviewers,nchevobbe,mossop,sparky,twisniewski,ohall
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
2025-05-29 08:30:32 +00:00

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();
}