fix(reactivity): avoid polluting Object prototype
This commit is contained in:
parent
d8c6f14b5e
commit
f40f3a0e95
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user