(err, vm, info)
| 1434 | } |
| 1435 | |
| 1436 | function handleError (err, vm, info) { |
| 1437 | if (config.errorHandler) { |
| 1438 | config.errorHandler.call(null, err, vm, info); |
| 1439 | } else { |
| 1440 | if (process.env.NODE_ENV !== 'production') { |
| 1441 | warn(("Error in " + info + ":"), vm); |
| 1442 | } |
| 1443 | /* istanbul ignore else */ |
| 1444 | if (inBrowser && typeof console !== 'undefined') { |
| 1445 | console.error(err); |
| 1446 | } else { |
| 1447 | throw err |
| 1448 | } |
| 1449 | } |
| 1450 | } |
| 1451 | |
| 1452 | /* not type checking this file because flow doesn't play well with Proxy */ |
| 1453 |
no test coverage detected