window.errOptions = [
  {
    name: /^unhandledrejection$/
  },
  {
    message: /(^Script error\.$|WeixinJSBridge|window)/
  },
  {
    name: /^TypeError/,
    message: /(scrollTop|\$el|readonly property\.$|Type error)/
  },
  {
    req: {
      method: /^GET$/
    },
    res: {
      status: /^(0|421)$/
    }
  }
];
