B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Update the node that displays the currently selected autocomplete proposal.
   *
   * @param string aSuffix
   *        The proposed suffix for the inputNode value.
   */
Update the node that displays the currently selected autocomplete proposal.
@param string aSuffix
The proposed suffix for the inputNode value.
Update the node that displays the currently selected autocomplete proposal . @param string aSuffix The proposed suffix for the inputNode value .
function JSTF_updateCompleteNode(aSuffix)
  {
    let prefix = aSuffix ? this.inputNode.value.replace(/[\S]/g, " ") : "";
    this.completeNode.value = prefix + aSuffix;
  }
function JSTF_updateCompleteNode ( aSuffix ) { let prefix = aSuffix ? this . inputNode . value . replace ( / [\S] / g , " " ) : "" ; this . completeNode . value = prefix + aSuffix ; }
Update the node that displays the currently selected autocomplete proposal.
Update the node that displays the currently selected autocomplete proposal .
// completion prefix = input, with non-control chars replaced by spaces