chore: remove stale _isVue checks

This commit is contained in:
Evan You 2020-04-30 14:45:11 -04:00
parent 386b093554
commit 352c369704
2 changed files with 1 additions and 2 deletions

View File

@ -29,7 +29,6 @@ const isObservableType = /*#__PURE__*/ makeMap(
const canObserve = (value: any): boolean => { const canObserve = (value: any): boolean => {
return ( return (
!value._isVue &&
!value._isVNode && !value._isVNode &&
isObservableType(toRawType(value)) && isObservableType(toRawType(value)) &&
!rawValues.has(value) && !rawValues.has(value) &&

View File

@ -81,7 +81,7 @@ export function callWithAsyncErrorHandling(
): any[] { ): any[] {
if (isFunction(fn)) { if (isFunction(fn)) {
const res = callWithErrorHandling(fn, instance, type, args) const res = callWithErrorHandling(fn, instance, type, args)
if (res && !res._isVue && isPromise(res)) { if (res && isPromise(res)) {
res.catch(err => { res.catch(err => {
handleError(err, instance, type) handleError(err, instance, type)
}) })