B2G/gecko/toolkit/devtools/Console.jsm
/**
 * Helper for log() which converts a property/value pair into an output
 * string
 *
 * @param {string} aProp
 *        The name of the property to include in the output string
 * @param {object} aValue
 *        Value assigned to aProp to be converted to a single line string
 * @return {string}
 *        Multi line output string describing the property/value pair
 */
Helper for log() which converts a property/value pair into an output
string

@param {string} aProp
The name of the property to include in the output string
@param {object} aValue
Value assigned to aProp to be converted to a single line string
@return {string}
Multi line output string describing the property/value pair
Helper for log () which converts a property / value pair into an output string @param { string } aProp The name of the property to include in the output string @param { object } aValue Value assigned to aProp to be converted to a single line string @return { string } Multi line output string describing the property / value pair
function logProperty(aProp, aValue) {
  let reply = "";
  if (aProp == "stack" && typeof value == "string") {
    let trace = parseStack(aValue);
    reply += formatTrace(trace);
  }
  else {
    reply += "    - " + aProp + " = " + stringify(aValue) + "\n";
  }
  return reply;
}
function logProperty ( aProp , aValue ) { let reply = "" ; if ( aProp == "stack" && typeof value == "string" ) { let trace = parseStack ( aValue ) ; reply += formatTrace ( trace ) ; } else { reply += "    - " + aProp + " = " + stringify ( aValue ) + "\n" ; } return reply ; }
Helper for log() which converts a property/value pair into an output
 string
Helper for log () which converts a property / value pair into an output string