Bug 1229519: Fix miscellaneous parts of toolkit to pass eslint checks. r=MattN

This commit is contained in:
Dave Townsend
2015-12-03 10:02:45 -08:00
parent 6b54494f93
commit dd9da1fea1
33 changed files with 156 additions and 126 deletions

View File

@@ -8,4 +8,4 @@ exports.foo = "foo";
if ("loadedB" in self) {
throw new Error("B has been evaluted twice");
}
self.loadedB = true;
self.loadedB = true;

View File

@@ -15,4 +15,4 @@ var D = require("chrome://mochitests/content/chrome/toolkit/components/workerloa
exports.copiedFromD = JSON.parse(JSON.stringify(D));
// exportedFromD.copiedFromC should have all the fields defined in |exports|
exports.exportedFromD = D;
exports.finishedC = true;
exports.finishedC = true;

View File

@@ -8,4 +8,4 @@ exports.enteredD = true;
var C = require("chrome://mochitests/content/chrome/toolkit/components/workerloader/tests/moduleC-circular.js");
exports.copiedFromC = JSON.parse(JSON.stringify(C));
exports.exportedFromC = C;
exports.finishedD = true;
exports.finishedD = true;

View File

@@ -7,4 +7,4 @@
// 7
// 8
// 9
throw new Error("Let's see if this error is obtained with the right origin");
throw new Error("Let's see if this error is obtained with the right origin");

View File

@@ -9,4 +9,4 @@
// 9
exports.doThrow = function doThrow() {
Array.prototype.sort.apply("foo"); // This will raise a native TypeError
};
};