B2G/gecko/browser/components/tabview/modules/utils.jsm
// Pass as many arguments as you want, it'll print them all.
Pass as many arguments as you want, it'll print them all.
Pass as many arguments as you want it ' ll print them all .
function Utils_trace() {
    var text = this.expandArgumentsForLog(arguments);
    let stack = Error().stack.split("\n").slice(1);
    if (stack[0].indexOf("Utils_assert(") == 0)
      stack.splice(0, 1);
    this.log('trace: ' + text + '\n' + stack.join("\n"));
  }
function Utils_trace ( ) { var text = this . expandArgumentsForLog ( arguments ) ; let stack = Error ( ) . stack . split ( "\n" ) . slice ( 1 ) ; if ( stack [ 0 ] . indexOf ( "Utils_assert(" ) == 0 ) stack . splice ( 0 , 1 ) ; this . log ( 'trace: ' + text + '\n' + stack . join ( "\n" ) ) ; }
Pass as many arguments as you want, it'll print them all.
Pass as many arguments as you want it ' ll print them all .
// cut off the first line of the stack trace, because that's just this function. // if the caller was assert, cut out the line for the assert function as well.