Skip to content

Commit 3808d5f

Browse files
committed
Fixing tests.
1 parent b02988a commit 3808d5f

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/core/observer/scheduler.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { callHook } from '../instance/lifecycle'
66
import {
77
warn,
88
nextTick,
9-
devtools
9+
devtools,
10+
handleError
1011
} from '../util/index'
1112

1213
const queue: Array<Watcher> = []
@@ -100,15 +101,7 @@ function flushSchedulerQueue (maxUpdateCount?: number) {
100101
try {
101102
func()
102103
} catch (e) {
103-
/* 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-
}
104+
handleError(e, null, `Error in an after flush callback.`)
112105
}
113106
}
114107
}

0 commit comments

Comments
 (0)