B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Writes a message to the HUD that originates from the interactive
   * JavaScript console.
   *
   * @param string aOutputMessage
   *        The message to display.
   * @param number aCategory
   *        The category of message: one of the CATEGORY_ constants.
   * @param number aSeverity
   *        The severity of message: one of the SEVERITY_ constants.
   * @param nsIDOMNode [aNodeAfter]
   *        Optional DOM node after which you want to insert the new message.
   *        This is used when execution results need to be inserted immediately
   *        after the user input.
   * @param number [aTimestamp]
   *        Optional timestamp to show for the output message (millisconds since
   *        the UNIX epoch). If no timestamp is provided then Date.now() is
   *        used.
   * @return nsIDOMNode
   *         The new message node.
   */
Writes a message to the HUD that originates from the interactive
JavaScript console.

@param string aOutputMessage
The message to display.
@param number aCategory
The category of message: one of the CATEGORY_ constants.
@param number aSeverity
The severity of message: one of the SEVERITY_ constants.
@param nsIDOMNode [aNodeAfter]
Optional DOM node after which you want to insert the new message.
This is used when execution results need to be inserted immediately
after the user input.
@param number [aTimestamp]
Optional timestamp to show for the output message (millisconds since
the UNIX epoch). If no timestamp is provided then Date.now() is
used.
@return nsIDOMNode
The new message node.
Writes a message to the HUD that originates from the interactive JavaScript console . @param string aOutputMessage The message to display . @param number aCategory The category of message : one of the CATEGORY_ constants . @param number aSeverity The severity of message : one of the SEVERITY_ constants . @param nsIDOMNode [ aNodeAfter ] Optional DOM node after which you want to insert the new message . This is used when execution results need to be inserted immediately after the user input . @param number [ aTimestamp ] Optional timestamp to show for the output message ( millisconds since the UNIX epoch ) . If no timestamp is provided then Date . now () is used . @return nsIDOMNode The new message node .
function JST_writeOutput(aOutputMessage, aCategory, aSeverity, aNodeAfter,
                           aTimestamp)
  {
    let node = this.hud.createMessageNode(aCategory, aSeverity, aOutputMessage,
                                          null, null, null, null, aTimestamp);
    node._outputAfterNode = aNodeAfter;
    this.hud.outputMessage(aCategory, node);
    return node;
  }
function JST_writeOutput ( aOutputMessage , aCategory , aSeverity , aNodeAfter , aTimestamp ) { let node = this . hud . createMessageNode ( aCategory , aSeverity , aOutputMessage , null , null , null , null , aTimestamp ) ; node . _outputAfterNode = aNodeAfter ; this . hud . outputMessage ( aCategory , node ) ; return node ; }
Writes a message to the HUD that originates from the interactive
 JavaScript console.
Writes a message to the HUD that originates from the interactive JavaScript console .