function computeStackTrace(ex, depth) {
	    var stack = null;
	    depth = depth == null ? 0 : +depth;

	    try {
	      stack = computeStackTraceFromStackProp(ex);

	      if (stack) {
	        return stack;
	      }
	    } catch (e) {
	      if (TraceKit.debug) {
	        throw e;
	      }
	    }

	    try {
	      stack = computeStackTraceByWalkingCallerChain(ex, depth + 1);

	      if (stack) {
	        return stack;
	      }
	    } catch (e) {
	      if (TraceKit.debug) {
	        throw e;
	      }
	    }

	    return {
	      name: ex.name,
	      message: ex.message,
	      url: getLocationHref()
	    };
	  }
function computeStackTrace(ex, depth) {
	    var stack = null;
	    depth = depth == null ? 0 : +depth;

	    try {
	      stack = computeStackTraceFromStackProp(ex);

	      if (stack) {
	        return stack;
	      }
	    } catch (e) {
	      if (TraceKit.debug) {
	        throw e;
	      }
	    }

	    try {
	      stack = computeStackTraceByWalkingCallerChain(ex, depth + 1);

	      if (stack) {
	        return stack;
	      }
	    } catch (e) {
	      if (TraceKit.debug) {
	        throw e;
	      }
	    }

	    return {
	      name: ex.name,
	      message: ex.message,
	      url: getLocationHref()
	    };
	  }
function computeStackTrace ( ex , depth ) { var stack = null ; depth = depth == null ? 0 : + depth ; try { stack = computeStackTraceFromStackProp ( ex ) ; if ( stack ) { return stack ; } } catch ( e ) { if ( TraceKit . debug ) { throw e ; } } try { stack = computeStackTraceByWalkingCallerChain ( ex , depth + 1 ) ; if ( stack ) { return stack ; } } catch ( e ) { if ( TraceKit . debug ) { throw e ; } } return { name : ex . name , message : ex . message , url : getLocationHref ( ) } ; }
Computes a stack trace for an exception.
@param {Error} ex
@param {(string|number)=} depth
Computes a stack trace for an exception .