code: function postMessage(msg) {
              addFilesPromise.done(function (ternModule) {
                  // If an error came up during file handling, bail out now
                  if (!_ternNodeDomain) {
                      return;
                  }
  
                  if (config.debug) {
                      console.debug("Sending message", msg);
                  }
                  _ternNodeDomain.exec("invokeTernCommand", msg);
              });
          }
docs: Send a message to the tern node domain - if the module is being initialized,
  the message will not be posted until initialization is complete