Bug 1229519: Fix miscellaneous parts of toolkit to pass eslint checks. r=MattN
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -9,4 +9,4 @@
|
||||
// 9
|
||||
exports.doThrow = function doThrow() {
|
||||
Array.prototype.sort.apply("foo"); // This will raise a native TypeError
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user