hello-actor.js 375 B

12345678910111213141516171819
  1. /* Any copyright is dedicated to the Public Domain.
  2. http://creativecommons.org/publicdomain/zero/1.0/ */
  3. const protocol = require("devtools/shared/protocol");
  4. const helloSpec = protocol.generateActorSpec({
  5. typeName: "helloActor",
  6. methods: {
  7. hello: {}
  8. }
  9. });
  10. var HelloActor = protocol.ActorClassWithSpec(helloSpec, {
  11. hello: function () {
  12. return;
  13. }
  14. });