]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: remove stale _isVue checks
authorEvan You <yyx990803@gmail.com>
Thu, 30 Apr 2020 18:45:11 +0000 (14:45 -0400)
committerEvan You <yyx990803@gmail.com>
Thu, 30 Apr 2020 18:45:25 +0000 (14:45 -0400)
packages/reactivity/src/reactive.ts
packages/runtime-core/src/errorHandling.ts

index e6e3c1795afeb566417ccec1488d7eb994e9669a..7d7e2558fa2705ba71282e2b6a6146a45def1128 100644 (file)
@@ -29,7 +29,6 @@ const isObservableType = /*#__PURE__*/ makeMap(
 
 const canObserve = (value: any): boolean => {
   return (
-    !value._isVue &&
     !value._isVNode &&
     isObservableType(toRawType(value)) &&
     !rawValues.has(value) &&
index 095661218c6ca0917e65ffc6a0f3be877c12458c..7095df775680f69af2da5b70088904fef803f30c 100644 (file)
@@ -81,7 +81,7 @@ export function callWithAsyncErrorHandling(
 ): any[] {
   if (isFunction(fn)) {
     const res = callWithErrorHandling(fn, instance, type, args)
-    if (res && !res._isVue && isPromise(res)) {
+    if (res && isPromise(res)) {
       res.catch(err => {
         handleError(err, instance, type)
       })