B2G/gecko/toolkit/mozapps/extensions/AddonManager.jsm
/**
 * Calls a callback method consuming any thrown exception. Any parameters after
 * the callback parameter will be passed to the callback.
 *
 * @param  aCallback
 *         The callback method to call
 */
Calls a callback method consuming any thrown exception. Any parameters after
the callback parameter will be passed to the callback.

@param  aCallback
The callback method to call
Calls a callback method consuming any thrown exception . Any parameters after the callback parameter will be passed to the callback . @param aCallback The callback method to call
function safeCall(aCallback, ...aArgs) {
  try {
    aCallback.apply(null, aArgs);
  }
  catch (e) {
    WARN("Exception calling callback", e);
  }
}
function safeCall ( aCallback , ... aArgs ) { try { aCallback . apply ( null , aArgs ) ; } catch ( e ) { WARN ( "Exception calling callback" , e ) ; } }
Calls a callback method consuming any thrown exception.
Calls a callback method consuming any thrown exception .