summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/unit/pre_init_global_actors.js
blob: bd4284a70a31ca682ec7f8ba1cf314aada79763e (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 PreInitGlobalActor(aConnection) {}

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

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

DebuggerServer.addGlobalActor(PreInitGlobalActor, "preInitGlobalActor");