Closed Bug 1536653 Opened 6 years ago Closed 6 years ago

Enable ESLint rule no-throw-literal in browser/

Categories

(Firefox :: General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 68
Tracking Status
firefox68 --- fixed

People

(Reporter: Kwan, Assigned: Kwan)

References

Details

Attachments

(2 files)

No description provided.

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

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/

Keywords: checkin-needed

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

Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: