B2G/gecko/browser/components/tabview/modules/utils.jsm
// Prints the given object to a string, including all of its properties.
Prints the given object to a string, including all of its properties.
Prints the given object to a string including all of its properties .
function Utils_expandObject(obj) {
    var s = obj + ' = {';
    for (let prop in obj) {
      let value;
      try {
        value = obj[prop];
      } catch(e) {
        value = '[!!error retrieving property]';
      }
      s += prop + ': ';
      if (typeof value == 'string')
        s += '\'' + value + '\'';
      else if (typeof value == 'function')
        s += 'function';
      else
        s += value;
      s += ', ';
    }
    return s + '}';
  }
function Utils_expandObject ( obj ) { var s = obj + ' = {' ; for ( let prop in obj ) { let value ; try { value = obj [ prop ] ; } catch ( e ) { value = '[!!error retrieving property]' ; } s += prop + ': ' ; if ( typeof value == 'string' ) s += '\'' + value + '\'' ; else if ( typeof value == 'function' ) s += 'function' ; else s += value ; s += ', ' ; } return s + '}' ; }
Prints the given object to a string, including all of its properties.
Prints the given object to a string including all of its properties .