Closed
Bug 1579420
Opened 5 years ago
Closed 5 years ago
Enable ESLint rule no-async-promise-executor on disabled locations for browser and toolkit
Categories
(Toolkit :: General, task, P3)
Toolkit
General
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
Details
Attachments
(2 files)
When we upgraded to ESLint 6, we disabled the no-async-promise-executor rule for various files as it wasn't a quick enable.
This bug is for browser/ and toolkit/
Some notes about this rule (from ESlint's site):
The Promise executor function can be an async function. However, this is usually a mistake, for a few reasons:
- If an async executor function throws an error, the error will be lost and won’t cause the newly-constructed Promise to reject. This could make it difficult to debug and handle some errors.
- If a Promise executor function is using await, this is usually a sign that it is not actually necessary to use the new Promise constructor, or the scope of the new Promise constructor can be reduced.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D45009
Updated•5 years ago
|
Attachment #9091034 -
Attachment description: Bug 1579420 - Fix ESLint no-async-promise-executor issues in extensions code. → Bug 1579420 - Fix ESLint no-async-promise-executor issues in extensions code. r?rpl
Updated•5 years ago
|
Attachment #9091035 -
Attachment description: Bug 1579420 - Fix remaining ESLint no-async-promise-executor issues in browser/ and toolkit/. → Bug 1579420 - Fix remaining ESLint no-async-promise-executor issues in browser/ and toolkit/. r?Mossop
Assignee | ||
Comment 3•5 years ago
|
||
Try push of latest changes: https://treeherder.mozilla.org/#/jobs?repo=try&revision=1009ca9870c5663c1103e622f17066d54b829e8e
Assignee | ||
Updated•5 years ago
|
Iteration: --- → 71.2 - Sept 16 - 29
Points: --- → 2
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/658fefe3ee08
Fix ESLint no-async-promise-executor issues in extensions code. r=rpl
https://hg.mozilla.org/integration/autoland/rev/ee304e0ae81b
Fix remaining ESLint no-async-promise-executor issues in browser/ and toolkit/. r=mossop
Comment 5•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/658fefe3ee08
https://hg.mozilla.org/mozilla-central/rev/ee304e0ae81b
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox71:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in
before you can comment on or make changes to this bug.
Description
•