Bug 1544286 - xpcom/ manual ESLint no-throw-literal fixes. r=erahm

Differential Revision: https://phabricator.services.mozilla.com/D27451

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ian Moody 2019-04-16 15:02:10 +00:00
Родитель ced8871783
Коммит ac18aebd72
2 изменённых файлов: 1 добавлений и 9 удалений

Просмотреть файл

@ -84,14 +84,6 @@ module.exports = {
"rules": {
"no-undef": "off",
}
}, {
// TODO: Bug 1246594. Empty this list once the rule has landed for all dirs
"files": [
"xpcom/tests/unit/test_iniParser.js",
],
"rules": {
"no-throw-literal": "off",
}
}, {
...removeOverrides(xpcshellTestConfig),
"files": xpcshellTestPaths.map(path => `${path}**`),

Просмотреть файл

@ -300,6 +300,6 @@ try { parser.setString("ok", "ok", "good="); } catch (e) { caughtError = e; }
Assert.ok(!caughtError);
caughtError = null;
} catch (e) {
throw "FAILED in test #" + testnum + " -- " + e;
throw new Error(`FAILED in test #${testnum} -- ${e}`);
}
}