Skip to content

Commit 4c22d1d

Browse files
neelanceyyx990803
authored andcommitted
fix: allow traversing reactive objects which are sealed (#7080)
1 parent 063acb7 commit 4c22d1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/observer/traverse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function traverse (val: any) {
1818
function _traverse (val: any, seen: SimpleSet) {
1919
let i, keys
2020
const isA = Array.isArray(val)
21-
if ((!isA && !isObject(val)) || !Object.isExtensible(val)) {
21+
if ((!isA && !isObject(val)) || Object.isFrozen(val)) {
2222
return
2323
}
2424
if (val.__ob__) {

0 commit comments

Comments
 (0)