src/raygun.utilities/errorUtilities.js
/**
     * Check if the current stacktrace is a Script error from an external domain.
     *
     * @param stackTrace
     * @param options
     * @returns {boolean}
     */
Check if the current stacktrace is a Script error from an external domain.
@param stackTrace
@param options
@returns {boolean}
Check if the current stacktrace is a Script error from an external domain . @param stackTrace @param options @returns { boolean }
function isScriptError(stackTrace, options) {
      var msg = scriptError;
      if (stackTrace.message) {
        msg = stackTrace.message;
      } else if (options && options.status) {
        msg = options.status;
      }
      if (utils.isNil(msg)) {
        msg = scriptError;
      }
      return !utils.isReactNative() &&
        typeof msg.substring === 'function' &&
        msg.substring(0, scriptError.length) === scriptError &&
        !utils.isNil(stackTrace.stack[0].url) &&
        stackTrace.stack[0].url.indexOf(currentLocation.host) === -1 &&
        (stackTrace.stack[0].line === 0 || stackTrace.stack[0].func === '?');
    }
function isScriptError ( stackTrace , options ) { var msg = scriptError ; if ( stackTrace . message ) { msg = stackTrace . message ; } else if ( options && options . status ) { msg = options . status ; } if ( utils . isNil ( msg ) ) { msg = scriptError ; } return ! utils . isReactNative ( ) && typeof msg . substring === 'function' && msg . substring ( 0 , scriptError . length ) === scriptError && ! utils . isNil ( stackTrace . stack [ 0 ] . url ) && stackTrace . stack [ 0 ] . url . indexOf ( currentLocation . host ) === - 1 && ( stackTrace . stack [ 0 ] . line === 0 || stackTrace . stack [ 0 ] . func === '?' ) ; }
Check if the current stacktrace is a Script error from an external domain.
Check if the current stacktrace is a Script error from an external domain .