Skip to content

Commit

Permalink
fix: avoid isPromise check when handler return value is Vue instance
Browse files Browse the repository at this point in the history
fix #9418
  • Loading branch information
yyx990803 committed Feb 4, 2019
1 parent 8554831 commit b6b42ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util/error.js
Expand Up @@ -35,7 +35,7 @@ export function invokeWithErrorHandling (
let res
try {
res = args ? handler.apply(context, args) : handler.call(context)
if (isPromise(res)) {
if (res && !res._isVue && isPromise(res)) {
res.catch(e => handleError(e, vm, info + ` (Promise/async)`))
}
} catch (e) {
Expand Down

0 comments on commit b6b42ca

Please sign in to comment.