Skip to content

Commit

Permalink
fix: unwrap warning, fix #425 (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 9, 2020
1 parent 01524a4 commit d5123ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reactivity/unwrap.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isRef } from './ref'
import { proxy, isFunction, isPlainObject, isArray } from '../utils'
import { proxy, isFunction, isPlainObject, isArray, hasOwn } from '../utils'
import { isReactive, isRaw } from './reactive'

export function unwrapRefProxy(value: any, map = new WeakMap()) {
Expand Down Expand Up @@ -28,7 +28,7 @@ export function unwrapRefProxy(value: any, map = new WeakMap()) {
)

// copy __ob__
if (value.__ob__) {
if (hasOwn(value, '__ob__')) {
Object.defineProperty(obj, '__ob__', {
enumerable: false,
value: value.__ob__,
Expand Down

0 comments on commit d5123ec

Please sign in to comment.