зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1425244 - Enable ESLint rule no-new-object for accessible/tests/mochitest/. r=surkov
MozReview-Commit-ID: AU5AlyOdgoy --HG-- extra : rebase_source : a9bb04d3dc5d6823160baa83b710ac68cefeb814
This commit is contained in:
Родитель
6ad02b364e
Коммит
217fc0f5a2
|
@ -12,7 +12,6 @@ module.exports = {
|
||||||
// disabled here due to failures when initially implemented. They should be
|
// disabled here due to failures when initially implemented. They should be
|
||||||
// removed (and hence enabled) at some stage.
|
// removed (and hence enabled) at some stage.
|
||||||
"no-nested-ternary": "off",
|
"no-nested-ternary": "off",
|
||||||
"no-new-object": "off",
|
|
||||||
"no-redeclare": "off",
|
"no-redeclare": "off",
|
||||||
"no-shadow": "off",
|
"no-shadow": "off",
|
||||||
"no-undef": "off",
|
"no-undef": "off",
|
||||||
|
|
|
@ -724,8 +724,8 @@ function getTextFromClipboard() {
|
||||||
trans.addDataFlavor("text/unicode");
|
trans.addDataFlavor("text/unicode");
|
||||||
clip.getData(trans, clip.kGlobalClipboard);
|
clip.getData(trans, clip.kGlobalClipboard);
|
||||||
|
|
||||||
var str = new Object();
|
var str = {};
|
||||||
var strLength = new Object();
|
var strLength = {};
|
||||||
trans.getTransferData("text/unicode", str, strLength);
|
trans.getTransferData("text/unicode", str, strLength);
|
||||||
|
|
||||||
if (str)
|
if (str)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче