Source code

Revision control

Copy as Markdown

Other Tools

/**
* @file 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/.
*/
export default {
globals: {
// All these variables are hard-coded to be available for sjs scopes only.
atob: "readonly",
btoa: "readonly",
Cc: "readonly",
ChromeUtils: "readonly",
Ci: "readonly",
Components: "readonly",
Cr: "readonly",
Cu: "readonly",
dump: "readonly",
IOUtils: "readonly",
PathUtils: "readonly",
TextDecoder: "readonly",
TextEncoder: "readonly",
URLSearchParams: "readonly",
URL: "readonly",
getState: "readonly",
setState: "readonly",
getSharedState: "readonly",
setSharedState: "readonly",
getObjectState: "readonly",
setObjectState: "readonly",
registerPathHandler: "readonly",
Services: "readonly",
// importScripts is also available.
importScripts: "readonly",
},
};