message: fix: handle errors in errorHandler
  close
diff: @@ -6,8 +6,17 @@ import { inBrowser } from './env'
  export function handleError (err: Error, vm: any, info: string) {
  if (config.errorHandler) {
  + try {
  config.errorHandler.call(null, err, vm, info)
  - } else {
  + return
  + } catch (e) {
  + logError(e, null, 'errorHandler')
  + }
  + }
  + logError(err, vm, info)
  +}
  +
  +function logError (err, vm, info) {
  if (process.env.NODE_ENV !== 'production') {
  warn(`Error in ${info}: "${err.toString()}"`, vm)
  }
  @@ -18,4 +27,3 @@ export function handleError (err: Error, vm: any, info: string) {
  throw err
  }
  }
  -}
  