B2G/gecko/dom/base/ConsoleAPI.js
/**
   * Queue a call to a console method. See the CALL_DELAY constant.
   *
   * @param string aMethod
   *        The console method the code has invoked.
   * @param object aArguments
   *        The arguments passed to the console method.
   */
Queue a call to a console method. See the CALL_DELAY constant.
@param string aMethod
The console method the code has invoked.
@param object aArguments
The arguments passed to the console method.
Queue a call to a console method . See the CALL_DELAY constant . @param string aMethod The console method the code has invoked . @param object aArguments The arguments passed to the console method .
function CA_queueCall(aMethod, aArguments)
  {
    let metaForCall = {
      isPrivate: PrivateBrowsingUtils.isWindowPrivate(this._window.get()),
      timeStamp: Date.now(),
      stack: this.getStackTrace(aMethod != "trace" ? 1 : null),
    };
    this._queuedCalls.push([aMethod, aArguments, metaForCall]);
    if (!this._timerInitialized) {
      this._timer.initWithCallback(this._timerCallback.bind(this), CALL_DELAY,
                                   Ci.nsITimer.TYPE_REPEATING_SLACK);
      this._timerInitialized = true;
    }
  }
function CA_queueCall ( aMethod , aArguments ) { let metaForCall = { isPrivate : PrivateBrowsingUtils . isWindowPrivate ( this . _window . get ( ) ) , timeStamp : Date . now ( ) , stack : this . getStackTrace ( aMethod != "trace" ? 1 : null ) , } ; this . _queuedCalls . push ( [ aMethod , aArguments , metaForCall ] ) ; if ( ! this . _timerInitialized ) { this . _timer . initWithCallback ( this . _timerCallback . bind ( this ) , CALL_DELAY , Ci . nsITimer . TYPE_REPEATING_SLACK ) ; this . _timerInitialized = true ; } }
Queue a call to a console method.
Queue a call to a console method .