summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/unit/post_init_global_actors.js
blob: 0035e8914f7f2cf9cf901547cc1c8d47a6293f60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

function PostInitGlobalActor(aConnection) {}

PostInitGlobalActor.prototype = {
  actorPrefix: "postInitGlobal",
  onPing: function onPing(aRequest) {
    return { message: "pong" };
  },
};

PostInitGlobalActor.prototype.requestTypes = {
  "ping": PostInitGlobalActor.prototype.onPing,
};

DebuggerServer.addGlobalActor(PostInitGlobalActor, "postInitGlobalActor");