We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b02988a commit 3808d5fCopy full SHA for 3808d5f
src/core/observer/scheduler.js
@@ -6,7 +6,8 @@ import { callHook } from '../instance/lifecycle'
6
import {
7
warn,
8
nextTick,
9
- devtools
+ devtools,
10
+ handleError
11
} from '../util/index'
12
13
const queue: Array<Watcher> = []
@@ -100,15 +101,7 @@ function flushSchedulerQueue (maxUpdateCount?: number) {
100
101
try {
102
func()
103
} catch (e) {
- /* istanbul ignore else */
104
- if (config.errorHandler) {
105
- config.errorHandler.call(null, e)
106
- } else {
107
- process.env.NODE_ENV !== 'production' && warn(
108
- `Error in an after flush callback.`
109
- )
110
- throw e
111
- }
+ handleError(e, null, `Error in an after flush callback.`)
112
}
113
114
0 commit comments