Backed out changeset 35420ca15900 (bug 1379256)

This commit is contained in:
Sebastian Hengst 2017-08-12 13:48:06 +02:00
Родитель 1f19257b7d
Коммит 7a1209abe1
16 изменённых файлов: 3 добавлений и 37 удалений

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

@ -8,6 +8,7 @@ module.exports = {
"no-redeclare": "off",
"no-self-assign": "off",
"no-shadow": "off",
"no-undef": "off",
"no-unused-vars": "off",
"object-shorthand": "off",
}

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

@ -2,7 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
/* eslint-env worker */
if (this.Components) {
throw new Error("This worker can only be loaded from a worker thread");

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

@ -17,8 +17,6 @@
* - a few additional utilities.
*/
/* eslint-env worker */
// Boilerplate used to be able to import this module both from the main
// thread and from worker threads.
@ -91,7 +89,6 @@ exports.Config = Config;
if (typeof Components != "undefined") {
// On the main thread, OS.Constants is defined by a xpcom
// component. On other threads, it is available automatically
/* global OS */
Cu.import("resource://gre/modules/ctypes.jsm");
Cc["@mozilla.org/net/osfileconstantsservice;1"].
getService(Ci.nsIOSFileConstantsService).init();

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

@ -9,9 +9,6 @@
* be executed only on a worker thread.
*/
/* eslint-env node */
/* global OS */
if (typeof Components != "undefined") {
throw new Error("osfile_shared_front.jsm cannot be used from the main thread");
}

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

@ -17,8 +17,6 @@
* - opened from a chrome worker through require().
*/
/* eslint-env node */
"use strict";
var SharedAll;

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

@ -2,9 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
/* eslint-env mozilla/chrome-worker, node */
/* global OS */
{
if (typeof Components != "undefined") {
// We do not wish osfile_unix_back.jsm to be used directly as a main thread

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

@ -9,9 +9,6 @@
* This front-end is meant to be imported by a worker thread.
*/
/* eslint-env mozilla/chrome-worker, node */
/* global OS */
{
if (typeof Components != "undefined") {
// We do not wish osfile_unix_front.jsm to be used directly as a main thread

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

@ -17,8 +17,6 @@
* - opened from a chrome worker through require().
*/
/* eslint-env node */
"use strict";
var SharedAll;

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

@ -19,9 +19,6 @@
* (bug 729057)
*/
/* eslint-env mozilla/chrome-worker, node */
/* global OS */
{
if (typeof Components != "undefined") {
// We do not wish osfile_win.jsm to be used directly as a main thread

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

@ -9,9 +9,6 @@
* This front-end is meant to be imported by a worker thread.
*/
/* eslint-env mozilla/chrome-worker, node */
/* global OS */
{
if (typeof Components != "undefined") {
// We do not wish osfile_win_front.jsm to be used directly as a main thread

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

@ -15,9 +15,6 @@
* - all path concatenations go through function |join|.
*/
/* global OS */
/* eslint-env node */
"use strict";
if (typeof Components == "undefined") {

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

@ -38,10 +38,10 @@ var maketest = function(prefix, test) {
okpromise: function okpromise(t, m) {
return t.then(
function onSuccess() {
utils.ok(true, m);
util.ok(true, m);
},
function onFailure() {
utils.ok(false, m);
util.ok(false, m);
}
);
}

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

@ -1,8 +1,6 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/* eslint-env mozilla/chrome-worker, node */
"use strict";
importScripts("worker_test_osfile_shared.js");

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

@ -1,8 +1,6 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/* eslint-env mozilla/chrome-worker, node */
importScripts("worker_test_osfile_shared.js");
importScripts("resource://gre/modules/workers/require.js");

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

@ -1,9 +1,6 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/* eslint-env mozilla/chrome-worker, node */
importScripts("worker_test_osfile_shared.js");
self.onmessage = function(msg) {

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

@ -1,8 +1,6 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/* eslint-env mozilla/chrome-worker, node */
importScripts("worker_test_osfile_shared.js");
self.onmessage = function(msg) {