sjs.js 876 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * @fileoverview Defines the environment for sjs files.
  3. *
  4. * This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. */
  8. "use strict";
  9. module.exports = {
  10. globals: {
  11. // All these variables are hard-coded to be available for sjs scopes only.
  12. // https://searchfox.org/mozilla-central/rev/26a1b0fce12e6dd495a954c542bb1e7bd6e0d548/netwerk/test/httpserver/httpd.js#2879
  13. atob: false,
  14. btoa: false,
  15. ChromeUtils: false,
  16. dump: false,
  17. getState: false,
  18. setState: false,
  19. getSharedState: false,
  20. setSharedState: false,
  21. getObjectState: false,
  22. setObjectState: false,
  23. registerPathHandler: false,
  24. Services: false,
  25. // importScripts is also available.
  26. importScripts: false,
  27. },
  28. };