B2G/gecko/browser/components/tabview/modules/utils.jsm
// Throws label as an exception if condition is false.
Throws label as an exception if condition is false.
Throws label as an exception if condition is false .
function Utils_assertThrow(condition, label) {
    if (!condition) {
      let text;
      if (typeof label != 'string')
        text = 'badly formed assert';
      else
        text = "tabview assert: " + label;
      let stack = Error().stack.split("\n").slice(1);
      throw text + "\n" + stack.join("\n");
    }
  }
function Utils_assertThrow ( condition , label ) { if ( ! condition ) { let text ; if ( typeof label != 'string' ) text = 'badly formed assert' ; else text = "tabview assert: " + label ; let stack = Error ( ) . stack . split ( "\n" ) . slice ( 1 ) ; throw text + "\n" + stack . join ( "\n" ) ; } }
Throws label as an exception if condition is false.
Throws label as an exception if condition is false .
// cut off the first line of the stack trace, because that's just this function.