Enable ESLint rule no-throw-literal in dom/
Categories
(Core :: DOM: Core & HTML, enhancement, P2)
Tracking
()
| 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•7 years ago
|
||
Result of running:
$ mach eslint -funix dom/ | 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•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
| Assignee | ||
Comment 3•7 years ago
|
||
Green try with one intermittent:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=24bc50f11129ce3ecaee238f9fdc8c27fe5e7997
Sheriffs, this is for both this and bug 1536659.
If any later child revisions from other bugs show up in the stack by the time you get to this you don't need to worry about them, only push up to here
https://lando.services.mozilla.com/D24370/
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/842871b6e080
dom/ automated ESLint no-throw-literal fixes. r=asuth,mccr8
Comment 6•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/842871b6e080
https://hg.mozilla.org/mozilla-central/rev/55be3316a5cb
Description
•