environment.js 628 B

12345678910111213141516171819202122232425262728
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. "use strict";
  5. const {Arg, RetVal, generateActorSpec} = require("devtools/shared/protocol");
  6. const environmentSpec = generateActorSpec({
  7. typeName: "environment",
  8. methods: {
  9. assign: {
  10. request: {
  11. name: Arg(1),
  12. value: Arg(2)
  13. }
  14. },
  15. bindings: {
  16. request: {},
  17. response: {
  18. bindings: RetVal("json")
  19. }
  20. },
  21. },
  22. });
  23. exports.environmentSpec = environmentSpec;