Skip to content

Commit e8ea208

Browse files
authored
feat: ie11 isReactive fix (#441)
1 parent b31c74a commit e8ea208

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/reactivity/reactive.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AnyObject } from '../types/basic'
22
import { getVueConstructor } from '../runtimeContext'
3-
import { isPlainObject, def, hasOwn, warn } from '../utils'
3+
import { isPlainObject, def, hasOwn, warn, isObject } from '../utils'
44
import { isComponentInstance, defineComponentInstance } from '../utils/helper'
55
import {
66
AccessControlIdentifierKey,
@@ -22,6 +22,7 @@ export function isRaw(obj: any): boolean {
2222

2323
export function isReactive(obj: any): boolean {
2424
return (
25+
isObject(obj) &&
2526
Object.isExtensible(obj) &&
2627
hasOwn(obj, ReactiveIdentifierKey) &&
2728
obj[ReactiveIdentifierKey] === ReactiveIdentifier

0 commit comments

Comments
 (0)