code: function resetTernServer() {
      // If a server is already created just reset the analysis data 
      if (ternServer) {
          ternServer.reset();
          Infer.resetGuessing();
          // tell the main thread we're ready to start processing again
          self.postMessage({type: MessageIds.TERN_WORKER_READY});
      }
  }
docs: Resets an existing tern server.