B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Sets the value of the input field (command line), and resizes the field to
   * fit its contents. This method is preferred over setting "inputNode.value"
   * directly, because it correctly resizes the field.
   *
   * @param string aNewValue
   *        The new value to set.
   * @returns void
   */
Sets the value of the input field (command line), and resizes the field to
fit its contents. This method is preferred over setting "inputNode.value"
directly, because it correctly resizes the field.

@param string aNewValue
The new value to set.
@returns void
Sets the value of the input field ( command line ) and resizes the field to fit its contents . This method is preferred over setting " inputNode . value " directly because it correctly resizes the field . @param string aNewValue The new value to set . @returns void
function JST_setInputValue(aNewValue)
  {
    this.inputNode.value = aNewValue;
    this.lastInputValue = aNewValue;
    this.completeNode.value = "";
    this.resizeInput();
  }
function JST_setInputValue ( aNewValue ) { this . inputNode . value = aNewValue ; this . lastInputValue = aNewValue ; this . completeNode . value = "" ; this . resizeInput ( ) ; }
Sets the value of the input field (command line), and resizes the field to
 fit its contents.
Sets the value of the input field ( command line ) and resizes the field to fit its contents .