Skip to content

Commit b6b42ca

Browse files
committed
fix: avoid isPromise check when handler return value is Vue instance
fix #9418
1 parent 8554831 commit b6b42ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/core/util/error.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function invokeWithErrorHandling (
3535
let res
3636
try {
3737
res = args ? handler.apply(context, args) : handler.call(context)
38-
if (isPromise(res)) {
38+
if (res && !res._isVue && isPromise(res)) {
3939
res.catch(e => handleError(e, vm, info + ` (Promise/async)`))
4040
}
4141
} catch (e) {

0 commit comments

Comments
 (0)