Closed
Bug 1934690
Opened 1 year ago
Closed 1 year ago
Unnecessary lint eslint-disable in worker-loader.sys.mjs
Categories
(DevTools :: General, task)
DevTools
General
Tracking
(firefox135 fixed)
RESOLVED
FIXED
135 Branch
| Tracking | Status | |
|---|---|---|
| firefox135 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
Details
Attachments
(1 file)
worker-loader.sys.mjs contains the eslint-disable comment for the reject-global-this rule,
/* eslint-disable mozilla/reject-global-this */
but the only consumer of the global thisthis is the following:
var {
...
} = function () {
...
}.call(this);
Given this is an ES module, the global this is always undefined, and there's no point of calling the function with explicitly passing this.
I suppose this is an artifact from the pre-ESM code which was using the global this for defining globals, but now all the related code is rewritten with globalThis.
| Assignee | ||
Comment 1•1 year ago
|
||
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/24f0e5423a0a
Stop using global this in worker-loader.sys.mjs. r=devtools-reviewers,nchevobbe
Comment 3•1 year ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox135:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•