Skip to content

Commit

Permalink
fix(reactivity): avoid polluting Object prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 4, 2020
1 parent d8c6f14 commit f40f3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/reactivity/src/baseHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function createGetter(isReadonly = false, shallow = false) {
return !isReadonly
} else if (key === ReactiveFlags.isReadonly) {
return isReadonly
} else if (key === ReactiveFlags.raw) {
} else if (key === ReactiveFlags.raw || key === '__proto__') {
return target
}

Expand Down

0 comments on commit f40f3a0

Please sign in to comment.