B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Returns a custom formatted property string for a type and a value.
   *
   * @param string | object aGrip
   *        The variable grip.
   * @return string
   *         The formatted property string.
   */
Returns a custom formatted property string for a type and a value.
@param string | object aGrip
The variable grip.
@return string
The formatted property string.
Returns a custom formatted property string for a type and a value . @param string | object aGrip The variable grip . @return string The formatted property string .
function DVP__propertyString(aGrip) {
    if (aGrip && "object" === typeof aGrip) {
      switch (aGrip.type) {
        case "undefined":
          return "undefined";
        case "null":
          return "null";
        default:
          return "[" + aGrip.type + " " + aGrip.class + "]";
      }
    } else {
      switch (typeof aGrip) {
        case "string":
          return "\"" + aGrip + "\"";
        case "boolean":
          return aGrip ? "true" : "false";
        default:
          return aGrip + "";
      }
    }
    return aGrip + "";
  }
function DVP__propertyString ( aGrip ) { if ( aGrip && "object" === typeof aGrip ) { switch ( aGrip . type ) { case "undefined" : return "undefined" ; case "null" : return "null" ; default : return "[" + aGrip . type + " " + aGrip . class + "]" ; } } else { switch ( typeof aGrip ) { case "string" : return "\"" + aGrip + "\"" ; case "boolean" : return aGrip ? "true" : "false" ; default : return aGrip + "" ; } } return aGrip + "" ; }
Returns a custom formatted property string for a type and a value.
Returns a custom formatted property string for a type and a value .