From e8ea208ed9ef377d2b7c679980022ebfc95b50d3 Mon Sep 17 00:00:00 2001 From: Carlos Rodrigues Date: Sat, 18 Jul 2020 07:09:34 +0100 Subject: [PATCH] feat: ie11 isReactive fix (#441) --- src/reactivity/reactive.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/reactivity/reactive.ts b/src/reactivity/reactive.ts index 03417147..2e2fcc49 100644 --- a/src/reactivity/reactive.ts +++ b/src/reactivity/reactive.ts @@ -1,6 +1,6 @@ import { AnyObject } from '../types/basic' import { getVueConstructor } from '../runtimeContext' -import { isPlainObject, def, hasOwn, warn } from '../utils' +import { isPlainObject, def, hasOwn, warn, isObject } from '../utils' import { isComponentInstance, defineComponentInstance } from '../utils/helper' import { AccessControlIdentifierKey, @@ -22,6 +22,7 @@ export function isRaw(obj: any): boolean { export function isReactive(obj: any): boolean { return ( + isObject(obj) && Object.isExtensible(obj) && hasOwn(obj, ReactiveIdentifierKey) && obj[ReactiveIdentifierKey] === ReactiveIdentifier