B2G/gecko/storage/test/unit/test_statement_wrapper_automatically.js
/**
 * A convenience function that prints out a description of aVal using
 * aVal.toString and aVal.toSource.  Output is useful when the test fails.
 *
 * @param aVal
 *        a value inserted or to be inserted into our test table
 */
A convenience function that prints out a description of aVal using
aVal.toString and aVal.toSource.  Output is useful when the test fails.

@param aVal
a value inserted or to be inserted into our test table
A convenience function that prints out a description of aVal using aVal . toString and aVal . toSource . Output is useful when the test fails . @param aVal a value inserted or to be inserted into our test table
function printValDesc(aVal)
{
  try
  {
    var toSource = aVal.toSource();
  }
  catch (exc)
  {
    toSource = "";
  }
  print("Testing value: toString=" + aVal +
        (toSource ? " toSource=" + toSource : ""));
}
function printValDesc ( aVal ) { try { var toSource = aVal . toSource ( ) ; } catch ( exc ) { toSource = "" ; } print ( "Testing value: toString=" + aVal + ( toSource ? " toSource=" + toSource : "" ) ) ; }
A convenience function that prints out a description of aVal using
 aVal.toString and aVal.toSource.
A convenience function that prints out a description of aVal using aVal . toString and aVal . toSource .