Skip to content

Commit

Permalink
fix: allow traversing reactive objects which are sealed (vuejs#7080)
Browse files Browse the repository at this point in the history
  • Loading branch information
neelance authored and hefeng committed Jan 25, 2019
1 parent e219330 commit 83e7c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/observer/traverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function traverse (val: any) {
function _traverse (val: any, seen: SimpleSet) {
let i, keys
const isA = Array.isArray(val)
if ((!isA && !isObject(val)) || !Object.isExtensible(val)) {
if ((!isA && !isObject(val)) || Object.isFrozen(val)) {
return
}
if (val.__ob__) {
Expand Down

0 comments on commit 83e7c1b

Please sign in to comment.