B2G/gecko/toolkit/components/url-classifier/content/moz/debug.js
/**
 * Helper function that takes input and returns the DebugZone
 * corresponding to it.
 *
 * @param who Arbitrary input that will be converted into a zone name. Most
 *            likely an object that has .debugZone property, or a string.
 * @returns The DebugZone object corresponding to the input
 */
Helper function that takes input and returns the DebugZone
corresponding to it.

@param who Arbitrary input that will be converted into a zone name. Most
likely an object that has .debugZone property, or a string.
@returns The DebugZone object corresponding to the input
Helper function that takes input and returns the DebugZone corresponding to it . @param who Arbitrary input that will be converted into a zone name . Most likely an object that has . debugZone property or a string . @returns The DebugZone object corresponding to the input
function G_GetDebugZone(who) {
  if (G_GDEBUG) {
    var zone = "?";
    if (who && who.debugZone) {
      zone = who.debugZone;
    } else if (typeof who == "string") {
      zone = who;
    }
    return G_debugService.getZone(zone);
  }
}
function G_GetDebugZone ( who ) { if ( G_GDEBUG ) { var zone = "?" ; if ( who && who . debugZone ) { zone = who . debugZone ; } else if ( typeof who == "string" ) { zone = who ; } return G_debugService . getZone ( zone ) ; } }
Helper function that takes input and returns the DebugZone
 corresponding to it.
Helper function that takes input and returns the DebugZone corresponding to it .