B2G/gecko/toolkit/devtools/webconsole/dbg-webconsole-actors.js
/**
   * The Autocomplete request handler.
   *
   * @param object aRequest
   *        The request message - what input to autocomplete.
   * @return object
   *         The response message - matched properties.
   */
The Autocomplete request handler.
@param object aRequest
The request message - what input to autocomplete.
@return object
The response message - matched properties.
The Autocomplete request handler . @param object aRequest The request message - what input to autocomplete . @return object The response message - matched properties .
function WCA_onAutocomplete(aRequest)
  {
    let result = JSPropertyProvider(this.window, aRequest.text) || {};
    return {
      from: this.actorID,
      matches: result.matches || [],
      matchProp: result.matchProp,
    };
  }
function WCA_onAutocomplete ( aRequest ) { let result = JSPropertyProvider ( this . window , aRequest . text ) || { } ; return { from : this . actorID , matches : result . matches || [ ] , matchProp : result . matchProp , } ; }
The Autocomplete request handler.
The Autocomplete request handler .