Enable ESLint rule no-throw-literal in browser/
Categories
(Firefox :: General, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox68 | --- | fixed |
People
(Reporter: Kwan, Assigned: Kwan)
References
Details
Attachments
(2 files)
| Assignee | ||
Comment 1•6 years ago
|
||
Result of running:
$ mach eslint -funix browser/ | sed -Ee 's/:.+//' - | xargs sed -E
-e 's/throw ((["])[^"]+\2);/throw new Error(\1);/g' \ -e 's/throw ((["])[^"]+\2 + [^ ";]+);/throw new Error(\1);/g'
-e 's/throw (/throw new Error(/g' -i
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
Thanks Gijs!
Sheriffs, green mochitest try with a couple known intermittents here (Apologies that it doesn't immediately show the changesets but I had "fun" with bug 1488196 showing me misleading failures, so had to redo as no-artifact without changes):
https://treeherder.mozilla.org/#/jobs?repo=try&revision=6631c70dd9e478278677f83560bb4c943cb679f1
This c-n request also includes the changeset for bug 1536648. If later child revisions from other bugs show up in the stack by the time you get to this, don't worry about them, it only needs pushing up to here
https://lando.services.mozilla.com/D24111/
Pushed by btara@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2775470a624f
browser/ automated ESLint no-throw-literal fixes. r=Gijs
https://hg.mozilla.org/integration/autoland/rev/323b02ea2926
browser/ manual ESLint no-throw-literal fixes. r=Gijs
Comment 5•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/2775470a624f
https://hg.mozilla.org/mozilla-central/rev/323b02ea2926
Description
•