B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Display cached messages that may have been collected before the UI is
   * displayed.
   *
   * @param array aRemoteMessages
   *        Array of cached messages coming from the remote Web Console
   *        content instance.
   */
Display cached messages that may have been collected before the UI is
displayed.

@param array aRemoteMessages
Array of cached messages coming from the remote Web Console
content instance.
Display cached messages that may have been collected before the UI is displayed . @param array aRemoteMessages Array of cached messages coming from the remote Web Console content instance .
function WCF_displayCachedMessages(aRemoteMessages)
  {
    if (!aRemoteMessages.length) {
      return;
    }
    aRemoteMessages.forEach(function(aMessage) {
      switch (aMessage._type) {
        case "PageError": {
          let category = Utils.categoryForScriptError(aMessage);
          this.outputMessage(category, this.reportPageError,
                             [category, aMessage]);
          break;
        }
        case "ConsoleAPI":
          this.outputMessage(CATEGORY_WEBDEV, this.logConsoleAPIMessage,
                             [aMessage]);
          break;
      }
    }, this);
  }
function WCF_displayCachedMessages ( aRemoteMessages ) { if ( ! aRemoteMessages . length ) { return ; } aRemoteMessages . forEach ( function ( aMessage ) { switch ( aMessage . _type ) { case "PageError" : { let category = Utils . categoryForScriptError ( aMessage ) ; this . outputMessage ( category , this . reportPageError , [ category , aMessage ] ) ; break ; } case "ConsoleAPI" : this . outputMessage ( CATEGORY_WEBDEV , this . logConsoleAPIMessage , [ aMessage ] ) ; break ; } } , this ) ; }
Display cached messages that may have been collected before the UI is
 displayed.
Display cached messages that may have been collected before the UI is displayed .