perf(reactivity): no need to proxy has/ownKeys for readonly objects

This commit is contained in:
Evan You 2020-09-01 20:52:48 -04:00
parent c0427b45ff
commit 691a4b9530

View File

@ -174,8 +174,6 @@ export const mutableHandlers: ProxyHandler<object> = {
export const readonlyHandlers: ProxyHandler<object> = { export const readonlyHandlers: ProxyHandler<object> = {
get: readonlyGet, get: readonlyGet,
has,
ownKeys,
set(target, key) { set(target, key) {
if (__DEV__) { if (__DEV__) {
console.warn( console.warn(