B2G/gecko/dom/base/ConsoleAPI.js
/**
   * Process a queued call to a console method.
   *
   * @private
   * @param array aCall
   *        Array that holds information about the queued call.
   */
Process a queued call to a console method.
@private
@param array aCall
Array that holds information about the queued call.
Process a queued call to a console method . @private @param array aCall Array that holds information about the queued call .
function CA__processQueuedItem(aCall)
  {
    let [method, args, meta] = aCall;
    let notifyMeta = {
      isPrivate: meta.isPrivate,
      timeStamp: meta.timeStamp,
      frame: meta.stack[0],
    };
    let notifyArguments = null;
    switch (method) {
      case "log":
      case "info":
      case "warn":
      case "error":
      case "debug":
        notifyArguments = this.processArguments(args);
        break;
      case "trace":
        notifyArguments = meta.stack;
        break;
      case "group":
      case "groupCollapsed":
        notifyArguments = this.beginGroup(args);
        break;
      case "groupEnd":
      case "dir":
        notifyArguments = args;
        break;
      case "time":
        notifyArguments = this.startTimer(args[0], meta.timeStamp);
        break;
      case "timeEnd":
        notifyArguments = this.stopTimer(args[0], meta.timeStamp);
        break;
      default:
        return;
    }
    this.notifyObservers(method, notifyArguments, notifyMeta);
  }
function CA__processQueuedItem ( aCall ) { let [ method , args , meta ] = aCall ; let notifyMeta = { isPrivate : meta . isPrivate , timeStamp : meta . timeStamp , frame : meta . stack [ 0 ] , } ; let notifyArguments = null ; switch ( method ) { case "log" : case "info" : case "warn" : case "error" : case "debug" : notifyArguments = this . processArguments ( args ) ; break ; case "trace" : notifyArguments = meta . stack ; break ; case "group" : case "groupCollapsed" : notifyArguments = this . beginGroup ( args ) ; break ; case "groupEnd" : case "dir" : notifyArguments = args ; break ; case "time" : notifyArguments = this . startTimer ( args [ 0 ] , meta . timeStamp ) ; break ; case "timeEnd" : notifyArguments = this . stopTimer ( args [ 0 ] , meta . timeStamp ) ; break ; default : return ; } this . notifyObservers ( method , notifyArguments , notifyMeta ) ; }
Process a queued call to a console method.
Process a queued call to a console method .
// unknown console API method!