зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 35420ca15900 (bug 1379256)
This commit is contained in:
Родитель
1f19257b7d
Коммит
7a1209abe1
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче