Skip to content

Commit

Permalink
perf(reactivity): no need to proxy has/ownKeys for readonly objects
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 2, 2020
1 parent c0427b4 commit 691a4b9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/reactivity/src/baseHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@ export const mutableHandlers: ProxyHandler<object> = {

export const readonlyHandlers: ProxyHandler<object> = {
get: readonlyGet,
has,
ownKeys,
set(target, key) {
if (__DEV__) {
console.warn(
Expand Down

0 comments on commit 691a4b9

Please sign in to comment.