bug 1523104: remote: s/despatch/dispatcher/g; r=ochameau
authorAndreas Tolfsen <ato@sny.no>
Fri, 08 Feb 2019 16:57:40 +0000
changeset 521072 f1d96bc260510c3a0f0744f66a9535b8a495995a
parent 521071 af7a76690b8a73614b46fd18fd154035f0afde91
child 521073 290a558818ef8fb2c2765ab5b4f2fa26d82e13dd
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1523104
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1523104: remote: s/despatch/dispatcher/g; r=ochameau For the record, this is not a typo.
remote/Actor.jsm
remote/Session.jsm
--- a/remote/Actor.jsm
+++ b/remote/Actor.jsm
@@ -33,18 +33,18 @@ this.RemoteAgentActorChild = class exten
     super.receiveMessage(name, data);
   }
 };
 
 // TODO(ato): Move to MessageChannel.jsm?
 // 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}`;
   }
 
   emit(eventName, params = {}) {
     this.send({eventName, params});
   }
 
   send(message = {}) {
--- a/remote/Session.jsm
+++ b/remote/Session.jsm
@@ -12,25 +12,25 @@ const {Protocol} = ChromeUtils.import("c
 
 this.Session = class {
   constructor(connection, target) {
     this.connection = connection;
     this.target = target;
 
     this.domains = new Domains(this);
 
-    this.connection.onmessage = this.despatch.bind(this);
+    this.connection.onmessage = this.dispatch.bind(this);
   }
 
   destructor() {
     this.connection.onmessage = null;
     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");
       }
       if (typeof method == "undefined") {
         throw new TypeError("Message missing 'method' field");
       }