Skip to content

Commit

Permalink
feat: ie11 isReactive fix (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
pikax committed Jul 18, 2020
1 parent b31c74a commit e8ea208
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/reactivity/reactive.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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
Expand Down

0 comments on commit e8ea208

Please sign in to comment.