bug 1523104: remote: s/despatch/dispatcher/g; r=ochameau

For the record, this is not a typo.
This commit is contained in:
Andreas Tolfsen 2019-02-08 16:57:40 +00:00
parent 42e9f6cf8b
commit 1c352d20b9
2 changed files with 4 additions and 4 deletions

View File

@ -38,8 +38,8 @@ this.RemoteAgentActorChild = class extends ActorChild {
// TODO(ato): This can eventually be replaced by ActorChild and IPDL generation
// TODO(ato): Can we find a shorter name?
this.MessageChannelActorChild = class extends RemoteAgentActorChild {
constructor(despatcher) {
super(despatcher);
constructor(dispatcher) {
super(dispatcher);
this.name = `RemoteAgent:${this.constructor.name}`;
}

View File

@ -17,7 +17,7 @@ this.Session = class {
this.domains = new Domains(this);
this.connection.onmessage = this.despatch.bind(this);
this.connection.onmessage = this.dispatch.bind(this);
}
destructor() {
@ -25,7 +25,7 @@ this.Session = class {
this.domains.clear();
}
async despatch({id, method, params}) {
async dispatch({id, method, params}) {
try {
if (typeof id == "undefined") {
throw new TypeError("Message missing 'id' field");