summaryrefslogtreecommitdiffstats
path: root/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/sjs.js
blob: 995c3173d2466d73ef22a140145de554b6975d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
 * @fileoverview Defines the environment for sjs files.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * 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/.
 */

"use strict";

module.exports = {
  globals: {
    // All these variables are hard-coded to be available for sjs scopes only.
    // https://searchfox.org/mozilla-central/rev/26a1b0fce12e6dd495a954c542bb1e7bd6e0d548/netwerk/test/httpserver/httpd.js#2879
    atob: false,
    btoa: false,
    ChromeUtils: false,
    dump: false,
    getState: false,
    setState: false,
    getSharedState: false,
    setSharedState: false,
    getObjectState: false,
    setObjectState: false,
    registerPathHandler: false,
    Services: false,
    // importScripts is also available.
    importScripts: false,
  },
};