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