function y()

in static/js/tracker.js [959:1005]


      function y(e) {
        if (e)
          try {
            var t = '',
              n = 0,
              r = 0,
              o = '',
              i = '',
              c = 'string' == typeof e ? e : e.reason,
              u = f('AES').getConfig(
                'plugin_js_error_processPromiseRejectReason'
              );
            if (
              'function' == typeof u &&
              (!1 === (c = u(c)) || void 0 === c || '' === c || null === c)
            )
              return;
            'string' == typeof e.message && (t = e.message),
              'string' == typeof c
                ? (t = c)
                : 'object' == typeof c && (t = c.message);
            try {
              t || (t = 'object' == typeof c ? s()(c).substr(0, 150) : t);
            } catch (e) {}
            if ('object' == typeof c) {
              if ('number' == typeof c.column) (r = c.column), (n = c.line);
              else if (c.stack) {
                (a = c.stack.match(/at\s+.+:(\d+):(\d+)/)) &&
                  ((n = a[1]), (r = a[2]));
              }
              if (c.sourceURL) o = c.sourceURL;
              else if (c.stack) {
                var a;
                (a = c.stack.match(/at\s+(.+):\d+:\d+/)) && (o = a[1]);
              }
              c.stack && (i = c.stack);
            }
            d({
              message: t,
              filename: o,
              lineno: n,
              colno: r,
              stack: i,
              error_type: e.constructor.name,
            });
          } catch (e) {}
      }