Closed
Bug 1538764
Opened 6 years ago
Closed 6 years ago
Enable ESLint rule no-throw-literal in gfx/
Categories
(Core :: Graphics, enhancement)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla68
| Tracking | Status | |
|---|---|---|
| firefox68 | --- | fixed |
People
(Reporter: Kwan, Assigned: Kwan)
References
Details
Attachments
(2 files)
no-throw-literal helps ensure that when we do throw errors, they come with stack traces that help track down the source of the error.
| Assignee | ||
Comment 1•6 years ago
|
||
Result of running:
$ mach eslint -funix gfx/ | 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
|
||
Pushed by ncsoregi@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f755066901eb
gfx/ automated ESLint no-throw-literal fixes. r=kats
https://hg.mozilla.org/integration/autoland/rev/a20d8267e39f
gfx/ manual ESLint no-throw-literal fixes. r=kats
Comment 4•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f755066901eb
https://hg.mozilla.org/mozilla-central/rev/a20d8267e39f
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox68:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in
before you can comment on or make changes to this bug.
Description
•